Class: Tarantool::Space
- Inherits:
-
Object
- Object
- Tarantool::Space
- Defined in:
- lib/tarantool/space.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#space_no ⇒ Object
Returns the value of attribute space_no.
Instance Method Summary collapse
- #call(*args) ⇒ Object
- #delete(*args) ⇒ Object
-
#initialize(connection, space_no = nil) ⇒ Space
constructor
A new instance of Space.
- #insert(*args) ⇒ Object
- #ping(*args) ⇒ Object
- #request(cls, args) ⇒ Object
- #select(*args) ⇒ Object
- #update(*args) ⇒ Object
Constructor Details
#initialize(connection, space_no = nil) ⇒ Space
Returns a new instance of Space.
5 6 7 8 |
# File 'lib/tarantool/space.rb', line 5 def initialize(connection, space_no = nil) @connection = connection @space_no = space_no end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
4 5 6 |
# File 'lib/tarantool/space.rb', line 4 def connection @connection end |
#space_no ⇒ Object
Returns the value of attribute space_no.
3 4 5 |
# File 'lib/tarantool/space.rb', line 3 def space_no @space_no end |
Instance Method Details
#call(*args) ⇒ Object
14 15 16 |
# File 'lib/tarantool/space.rb', line 14 def call(*args) request Requests::Call, args end |
#delete(*args) ⇒ Object
23 24 25 |
# File 'lib/tarantool/space.rb', line 23 def delete(*args) request Requests::Delete, args end |
#insert(*args) ⇒ Object
18 19 20 |
# File 'lib/tarantool/space.rb', line 18 def insert(*args) request Requests::Insert, args end |
#ping(*args) ⇒ Object
31 32 33 |
# File 'lib/tarantool/space.rb', line 31 def ping(*args) request Requests::Ping, args end |
#request(cls, args) ⇒ Object
35 36 37 |
# File 'lib/tarantool/space.rb', line 35 def request(cls, args) cls.new(self, *args).perform end |
#select(*args) ⇒ Object
10 11 12 |
# File 'lib/tarantool/space.rb', line 10 def select(*args) request Requests::Select, args end |
#update(*args) ⇒ Object
27 28 29 |
# File 'lib/tarantool/space.rb', line 27 def update(*args) request Requests::Update, args end |