Class: Tarantool::Crud::Result

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
tarantool-crud/lib/tarantool/crud/result.rb

Overview

Rows returned by a crud function, as Hashes keyed by field name.

Direct Known Subclasses

ManyResult

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#metadata ⇒ Object (readonly)

Returns the value of attribute metadata.



9
10
11
# File 'tarantool-crud/lib/tarantool/crud/result.rb', line 9

def 
  @metadata
end

#tuples ⇒ Object (readonly)

Returns the value of attribute tuples.



9
10
11
# File 'tarantool-crud/lib/tarantool/crud/result.rb', line 9

def tuples
  @tuples
end

Instance Method Details

#each ⇒ Object



27
# File 'tarantool-crud/lib/tarantool/crud/result.rb', line 27

def each(&) = @rows.each(&)

#empty? ⇒ Boolean

Returns:

  • (Boolean)


33
# File 'tarantool-crud/lib/tarantool/crud/result.rb', line 33

def empty? = @rows.empty?

#last ⇒ Object



29
# File 'tarantool-crud/lib/tarantool/crud/result.rb', line 29

def last = @rows.last

#size ⇒ Object



31
# File 'tarantool-crud/lib/tarantool/crud/result.rb', line 31

def size = @rows.size