Class: Garb::ResultSet
- Inherits:
-
Object
- Object
- Garb::ResultSet
- Includes:
- Enumerable
- Defined in:
- lib/garb/result_set.rb
Instance Attribute Summary collapse
-
#sampled ⇒ Object
(also: #sampled?)
Returns the value of attribute sampled.
-
#total_results ⇒ Object
Returns the value of attribute total_results.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(results) ⇒ ResultSet
constructor
A new instance of ResultSet.
- #to_a ⇒ Object
Constructor Details
#initialize(results) ⇒ ResultSet
Returns a new instance of ResultSet.
9 10 11 |
# File 'lib/garb/result_set.rb', line 9 def initialize(results) @results = results end |
Instance Attribute Details
#sampled ⇒ Object Also known as: sampled?
Returns the value of attribute sampled.
5 6 7 |
# File 'lib/garb/result_set.rb', line 5 def sampled @sampled end |
#total_results ⇒ Object
Returns the value of attribute total_results.
5 6 7 |
# File 'lib/garb/result_set.rb', line 5 def total_results @total_results end |
Instance Method Details
#each(&block) ⇒ Object
13 14 15 |
# File 'lib/garb/result_set.rb', line 13 def each(&block) @results.each(&block) end |
#to_a ⇒ Object
17 18 19 |
# File 'lib/garb/result_set.rb', line 17 def to_a @results end |