123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Cursor::KillSpec Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/mongo/cursor/kill_spec.rb

Overview

This class contains the operation specification for KillCursors.

Its purpose is to ensure we don’t misspell attribute names accidentally.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#coll_name (readonly)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 46

attr_reader :cursor_id,
:coll_name,
:db_name,
:connection_global_id,
:server_address,
:session,
:connection

#connection (readonly)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 46

attr_reader :cursor_id,
:coll_name,
:db_name,
:connection_global_id,
:server_address,
:session,
:connection

#connection_global_id (readonly)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 46

attr_reader :cursor_id,
:coll_name,
:db_name,
:connection_global_id,
:server_address,
:session,
:connection

#cursor_id (readonly)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 46

attr_reader :cursor_id,
:coll_name,
:db_name,
:connection_global_id,
:server_address,
:session,
:connection

#db_name (readonly)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 46

attr_reader :cursor_id,
:coll_name,
:db_name,
:connection_global_id,
:server_address,
:session,
:connection

#server_address (readonly)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 46

attr_reader :cursor_id,
:coll_name,
:db_name,
:connection_global_id,
:server_address,
:session,
:connection

#session (readonly)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 46

attr_reader :cursor_id,
:coll_name,
:db_name,
:connection_global_id,
:server_address,
:session,
:connection

Instance Method Details

#==(other)

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 54

def ==(other)
  cursor_id == other.cursor_id &&
    coll_name == other.coll_name &&
    db_name == other.db_name &&
    connection_global_id == other.connection_global_id &&
    server_address == other.server_address &&
    session == other.session
end

#eql?(other) ⇒ Boolean

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 63

def eql?(other)
  self.==(other)
end

#hash

[ GitHub ]

  
# File 'lib/mongo/cursor/kill_spec.rb', line 67

def hash
  [
    cursor_id,
    coll_name,
    db_name,
    connection_global_id,
    server_address,
    session,
  ].compact.hash
end