Class: Fin::QuoteList

Inherits:
ContainerList show all
Includes:
BookManager
Defined in:
lib/fin/quote_list.rb

Overview

Represents list of ALL Quotes, indexed by repl_id Its @books is a set of QuoteBooks by isin_id. Each QuoteBook lists Quotes by price.

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

#initializeQuoteList

Returns a new instance of QuoteList.



11
12
13
14
15
# File 'lib/fin/quote_list.rb', line 11

def initialize
  super :item_type => Fin::Quote
  @book_index = proc { |item| item.price }
  @book_condition = proc { |item| item.price > 0 }
end