class Radar::Api::IndexService::Client
Public Instance Methods
price(symbol, date)
click to toggle source
# File gen/radar/api/index_service.rb, line 31 def price(symbol, date) send_price(symbol, date) return recv_price() end
price_change(symbol, start_date, end_date)
click to toggle source
# File gen/radar/api/index_service.rb, line 46 def price_change(symbol, start_date, end_date) send_price_change(symbol, start_date, end_date) return recv_price_change() end
prices(symbol, start_date, end_date)
click to toggle source
# File gen/radar/api/index_service.rb, line 16 def prices(symbol, start_date, end_date) send_prices(symbol, start_date, end_date) return recv_prices() end
recv_price()
click to toggle source
# File gen/radar/api/index_service.rb, line 40 def recv_price() result = receive_message(Price_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'price failed: unknown result') end
recv_price_change()
click to toggle source
# File gen/radar/api/index_service.rb, line 55 def recv_price_change() result = receive_message(Price_change_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'price_change failed: unknown result') end
recv_prices()
click to toggle source
# File gen/radar/api/index_service.rb, line 25 def recv_prices() result = receive_message(Prices_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'prices failed: unknown result') end
send_price(symbol, date)
click to toggle source
# File gen/radar/api/index_service.rb, line 36 def send_price(symbol, date) send_message('price', Price_args, :symbol => symbol, :date => date) end
send_price_change(symbol, start_date, end_date)
click to toggle source
# File gen/radar/api/index_service.rb, line 51 def send_price_change(symbol, start_date, end_date) send_message('price_change', Price_change_args, :symbol => symbol, :start_date => start_date, :end_date => end_date) end
send_prices(symbol, start_date, end_date)
click to toggle source
# File gen/radar/api/index_service.rb, line 21 def send_prices(symbol, start_date, end_date) send_message('prices', Prices_args, :symbol => symbol, :start_date => start_date, :end_date => end_date) end