Class: IbRubyProxy::Client::Ib::TickAttribLast

Inherits:
Struct
  • Object
show all
Defined in:
lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_limitObject

Returns the value of attribute past_limit

Returns:

  • (Object)

    the current value of past_limit



8
9
10
# File 'lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb', line 8

def past_limit
  @past_limit
end

#unreportedObject

Returns the value of attribute unreported

Returns:

  • (Object)

    the current value of 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_ibObject



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