Class: IbRubyProxy::Client::Ib::HistoricalTickLast
- Inherits:
-
Struct
- Object
- Struct
- IbRubyProxy::Client::Ib::HistoricalTickLast
- Defined in:
- lib/ib_ruby_proxy/client/ib/historical_tick_last.rb
Instance Attribute Summary collapse
-
#exchange ⇒ Object
Returns the value of attribute exchange.
-
#price ⇒ Object
Returns the value of attribute price.
-
#size ⇒ Object
Returns the value of attribute size.
-
#special_conditions ⇒ Object
Returns the value of attribute special_conditions.
-
#tick_attrib_last ⇒ Object
Returns the value of attribute tick_attrib_last.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(time: nil, tick_attrib_last: nil, price: 0, size: nil, exchange: nil, special_conditions: nil) ⇒ HistoricalTickLast
constructor
A new instance of HistoricalTickLast.
- #to_ib ⇒ Object
Constructor Details
#initialize(time: nil, tick_attrib_last: nil, price: 0, size: nil, exchange: nil, special_conditions: nil) ⇒ HistoricalTickLast
Returns a new instance of HistoricalTickLast.
9 10 11 12 13 14 15 16 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 9 def initialize(time: nil, tick_attrib_last: nil, price: 0, size: nil, exchange: nil, special_conditions: nil) self.time = time self.tick_attrib_last = tick_attrib_last self.price = price self.size = size self.exchange = exchange self.special_conditions = special_conditions end |
Instance Attribute Details
#exchange ⇒ Object
Returns the value of attribute exchange
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 8 def exchange @exchange end |
#price ⇒ Object
Returns the value of attribute price
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 8 def price @price end |
#size ⇒ Object
Returns the value of attribute size
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 8 def size @size end |
#special_conditions ⇒ Object
Returns the value of attribute special_conditions
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 8 def special_conditions @special_conditions end |
#tick_attrib_last ⇒ Object
Returns the value of attribute tick_attrib_last
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 8 def tick_attrib_last @tick_attrib_last end |
#time ⇒ Object
Returns the value of attribute time
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 8 def time @time end |
Instance Method Details
#to_ib ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ib_ruby_proxy/client/ib/historical_tick_last.rb', line 18 def to_ib ib_object = Java::ComIbClient::HistoricalTickLast.new ib_object.time(time).to_java ib_object.tickAttribLast(tick_attrib_last).to_java ib_object.price(price).to_java ib_object.size(size).to_java ib_object.exchange(exchange).to_java ib_object.specialConditions(special_conditions).to_java ib_object end |