Class: Java::ComIbClient::Bar

Inherits:
Object
  • Object
show all
Defined in:
lib/ib_ruby_proxy/server/ib/bar.rb

Instance Method Summary collapse

Instance Method Details

#to_rubyObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/ib_ruby_proxy/server/ib/bar.rb', line 8

def to_ruby
  ruby_object = IbRubyProxy::Client::Ib::Bar.new
  ruby_object.time = time().to_ruby
  ruby_object.open = open().to_ruby
  ruby_object.high = high().to_ruby
  ruby_object.low = low().to_ruby
  ruby_object.close = close().to_ruby
  ruby_object.volume = volume().to_ruby
  ruby_object.count = count().to_ruby
  ruby_object.wap = wap().to_ruby

  ruby_object
end