Sha256: 089edcda32560a5c5d4135b125701553ba9cd9187629cb7b6893c16c24fde9db

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

require 'fin/models/deal'
require 'fin/book_manager'

module Fin
  # 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.
  class DealList < ContainerList

    include BookManager

    def initialize
      super :item_type => Fin::Deal
      @book_index = proc { |item| item.deal_id }
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fin-0.1.6 lib/fin/deal_list.rb
fin-0.1.5 lib/fin/deal_list.rb
fin-0.1.4 lib/fin/deal_list.rb
fin-0.1.3 lib/fin/deal_list.rb
fin-0.1.2 lib/fin/deal_list.rb