Class: Fin::DealList
- Inherits:
-
ContainerList
- Object
- IndexedList
- ChangedList
- ContainerList
- Fin::DealList
- Includes:
- BookManager
- Defined in:
- lib/fin/deal_list.rb
Overview
Represents list of ALL Deals, indexed by deal_id Its @books is a set of DealBooks by isin_id. Each DealBook lists Deals by deal_id.
Instance Attribute Summary
Attributes inherited from ContainerList
Attributes inherited from ChangedList
#change_count, #changed, #updated
Instance Method Summary collapse
-
#initialize ⇒ DealList
constructor
A new instance of DealList.
Methods included from BookManager
Methods inherited from ContainerList
#add_message, #add_record, #check, #index, #remove_message, #remove_record
Methods inherited from ChangedList
#add?, #remove?, #update_noted
Constructor Details
#initialize ⇒ DealList
Returns a new instance of DealList.
11 12 13 14 |
# File 'lib/fin/deal_list.rb', line 11 def initialize super :item_type => Fin::Deal @book_index = proc { |item| item.deal_id } end |