Class: Fin::DealList

Inherits:
ContainerList show all
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

#item_type

Attributes inherited from ChangedList

#change_count, #changed, #updated

Instance Method Summary collapse

Methods included from BookManager

#add?, #books, #remove?

Methods inherited from ContainerList

#add_message, #add_record, #check, #index, #remove_message, #remove_record

Methods inherited from ChangedList

#add?, #remove?, #update_noted

Constructor Details

#initializeDealList

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