Class: Mongo::Cursor::KillSpec Private

Inherits:
Object
  • Object
show all
Defined in:
build/ruby-driver-master/lib/mongo/cursor/kill_spec.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

This class contains the operation specification for KillCursors.

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cursor_id:, coll_name:, db_name:, service_id:) ⇒ KillSpec

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of KillSpec.



28
29
30
31
32
33
# File 'build/ruby-driver-master/lib/mongo/cursor/kill_spec.rb', line 28

def initialize(cursor_id:, coll_name:, db_name:, service_id:)
  @cursor_id = cursor_id
  @coll_name = coll_name
  @db_name = db_name
  @service_id = service_id
end

Instance Attribute Details

#coll_nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'build/ruby-driver-master/lib/mongo/cursor/kill_spec.rb', line 35

def coll_name
  @coll_name
end

#cursor_idObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'build/ruby-driver-master/lib/mongo/cursor/kill_spec.rb', line 35

def cursor_id
  @cursor_id
end

#db_nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'build/ruby-driver-master/lib/mongo/cursor/kill_spec.rb', line 35

def db_name
  @db_name
end

#service_idObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'build/ruby-driver-master/lib/mongo/cursor/kill_spec.rb', line 35

def service_id
  @service_id
end