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
- .new(cursor_id:, coll_name:, db_name:, connection_global_id:, server_address:, session:, connection: nil) ⇒ KillSpec constructor Internal use only
Instance Attribute Summary
- #coll_name readonly Internal use only
- #connection readonly Internal use only
- #connection_global_id readonly Internal use only
- #cursor_id readonly Internal use only
- #db_name readonly Internal use only
- #server_address readonly Internal use only
- #session readonly Internal use only
Instance Method Summary
- #==(other) Internal use only
- #eql?(other) ⇒ Boolean Internal use only
- #hash Internal use only
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
# 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