module Coinone::Public
Attributes
complete_orders[R]
currency[R]
orderbook[R]
ticker[R]
Public Class Methods
get_complete_orders(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 30 def get_complete_orders(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/trades", options) @complete_orders = CompleteOrders.new(response) @complete_orders end
get_currency(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 12 def get_currency(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/currency") @currency = Currency.new(response) @currency end
get_orderbook(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 21 def get_orderbook(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/orderbook", options) @orderbook = Orderbook.new(response) @orderbook end
get_ticker(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 39 def get_ticker(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/ticker", options) @ticker = Tickers.new(response) @ticker end
Private Instance Methods
get_complete_orders(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 30 def get_complete_orders(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/trades", options) @complete_orders = CompleteOrders.new(response) @complete_orders end
get_currency(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 12 def get_currency(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/currency") @currency = Currency.new(response) @currency end
get_orderbook(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 21 def get_orderbook(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/orderbook", options) @orderbook = Orderbook.new(response) @orderbook end
get_ticker(options={}, connection=nil)
click to toggle source
# File lib/coinone/public.rb, line 39 def get_ticker(options={}, connection=nil) @connection = connection || Connection.factory(options) response = @connection.get("/ticker", options) @ticker = Tickers.new(response) @ticker end