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 44

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

#connection_global_id (readonly)

[ GitHub ]

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

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

#cursor_id (readonly)

[ GitHub ]

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

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

#db_name (readonly)

[ GitHub ]

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

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

#server_address (readonly)

[ GitHub ]

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

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

#session (readonly)

[ GitHub ]

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

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

Instance Method Details

#==(other)

[ GitHub ]

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

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 60

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

#hash

[ GitHub ]

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

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