Class: Baza::Driver::Tiny::Result
Instance Method Summary
collapse
Methods inherited from ResultBase
#to_a, #to_a_enum, #to_enum
Constructor Details
#initialize(result) ⇒ Result
2
3
4
|
# File 'lib/baza/driver/tiny/result.rb', line 2
def initialize(result)
@result = result.to_a
end
|
Instance Method Details
#each(&blk) ⇒ Object
6
7
8
|
# File 'lib/baza/driver/tiny/result.rb', line 6
def each(&blk)
enum.each(&blk)
end
|
#fetch ⇒ Object
10
11
12
13
14
|
# File 'lib/baza/driver/tiny/result.rb', line 10
def fetch
enum.next
rescue StopIteration
nil
end
|