Class: Snap::Models::StockTotalList
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Snap::Models::StockTotalList
- Defined in:
- lib/snap/models/stock_total_list.rb
Overview
Hydrate an array of stock totals.
Instance Method Summary collapse
-
#initialize(list) ⇒ StockTotalList
constructor
A new instance of StockTotalList.
Constructor Details
#initialize(list) ⇒ StockTotalList
Returns a new instance of StockTotalList.
7 8 9 |
# File 'lib/snap/models/stock_total_list.rb', line 7 def initialize(list) super(list.map { |item| StockTotal.new(item) }) end |