Class: IB::Messages::Incoming::ExecutionData

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

Instance Method Summary collapse

Instance Method Details

#contractObject



39
40
41
# File 'lib/ib/messages/incoming/execution_data.rb', line 39

def contract
  @contract = IB::Contract.build @data[:contract]
end

#executionObject



43
44
45
# File 'lib/ib/messages/incoming/execution_data.rb', line 43

def execution
  @execution = IB::Execution.new @data[:execution]
end

#to_humanObject



47
48
49
# File 'lib/ib/messages/incoming/execution_data.rb', line 47

def to_human
  "<ExecutionData #{request_id}: #{contract.to_human}, #{execution}>"
end