Class: Bataille::ResultSet

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/bataille/result_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject

Returns the value of attribute category.



4
5
6
# File 'lib/bataille/result_set.rb', line 4

def category
  @category
end

Instance Method Details

#eachObject



12
13
14
# File 'lib/bataille/result_set.rb', line 12

def each
  @results.each { |r| yield r }
end