Class: Bataille::ResultSet
- Inherits:
-
Object
- Object
- Bataille::ResultSet
- Includes:
- Enumerable
- Defined in:
- lib/bataille/result_set.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(results, category) ⇒ ResultSet
constructor
A new instance of ResultSet.
Constructor Details
#initialize(results, category) ⇒ ResultSet
Returns a new instance of ResultSet.
7 8 9 10 |
# File 'lib/bataille/result_set.rb', line 7 def initialize(results, category) @results = results @categories= [] end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
4 5 6 |
# File 'lib/bataille/result_set.rb', line 4 def category @category end |
Instance Method Details
#each ⇒ Object
12 13 14 |
# File 'lib/bataille/result_set.rb', line 12 def each @results.each { |r| yield r } end |