Class: IB::Messages::Incoming::ContractData

Inherits:
Object
  • Object
show all
Defined in:
lib/ib/messages/incoming/contract_data.rb

Instance Method Summary collapse

Instance Method Details

#contractObject



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_detailObject



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_humanObject



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