Class: Thanos::Factory::Price

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/factories/price.rb

Instance Method Summary collapse

Constructor Details

#initialize(prices) ⇒ Price

Returns a new instance of Price.



6
7
8
# File 'lib/thanos/factories/price.rb', line 6

def initialize(prices)
  @prices = prices
end

Instance Method Details

#buildObject



10
11
12
13
14
# File 'lib/thanos/factories/price.rb', line 10

def build
  @prices.collect do |price|
    Thanos::Price.new(price)
  end
end