Class: IB::Messages::Incoming::ContractData
- Defined in:
- lib/ib/messages/incoming/contract_data.rb
Instance Method Summary collapse
Instance Method Details
#contract ⇒ Object
51 52 53 |
# File 'lib/ib/messages/incoming/contract_data.rb', line 51 def contract @contract = IB::Contract.build @data[:contract].merge(:contract_detail => contract_detail) end |
#contract_detail ⇒ Object
55 56 57 |
# File 'lib/ib/messages/incoming/contract_data.rb', line 55 def contract_detail @contract_detail = IB::ContractDetail.new @data[:contract_detail] end |
#to_human ⇒ Object
59 60 61 |
# File 'lib/ib/messages/incoming/contract_data.rb', line 59 def to_human "<Contract #{contract.to_human} #{contract_detail.to_human}>" end |