Class: IbRubyProxy::Client::Ib::TickAttribLast
- Inherits:
-
Struct
- Object
- Struct
- IbRubyProxy::Client::Ib::TickAttribLast
- Defined in:
- lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb
Instance Attribute Summary collapse
-
#past_limit ⇒ Object
Returns the value of attribute past_limit.
-
#unreported ⇒ Object
Returns the value of attribute unreported.
Instance Method Summary collapse
-
#initialize(past_limit: false, unreported: false) ⇒ TickAttribLast
constructor
A new instance of TickAttribLast.
- #to_ib ⇒ Object
Constructor Details
#initialize(past_limit: false, unreported: false) ⇒ TickAttribLast
Returns a new instance of TickAttribLast.
9 10 11 12 |
# File 'lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb', line 9 def initialize(past_limit: false, unreported: false) self.past_limit = past_limit self.unreported = unreported end |
Instance Attribute Details
#past_limit ⇒ Object
Returns the value of attribute past_limit
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb', line 8 def past_limit @past_limit end |
#unreported ⇒ Object
Returns the value of attribute unreported
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb', line 8 def unreported @unreported end |
Instance Method Details
#to_ib ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb', line 14 def to_ib ib_object = Java::ComIbClient::TickAttribLast.new ib_object.pastLimit(past_limit).to_java ib_object.unreported(unreported).to_java ib_object end |