Class: Thanos::Factory::Price
- Inherits:
-
Object
- Object
- Thanos::Factory::Price
- Defined in:
- lib/thanos/factories/price.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(prices) ⇒ Price
constructor
A new instance of Price.
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
#build ⇒ Object
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 |