Module: Coinone::Public
- Defined in:
- lib/coinone/public.rb,
lib/coinone/public/tickers.rb,
lib/coinone/public/currency.rb,
lib/coinone/public/orderbook.rb,
lib/coinone/public/tickers/ticker.rb,
lib/coinone/public/complete_orders.rb,
lib/coinone/public/orderbook/order.rb,
lib/coinone/public/orderbook/orders.rb,
lib/coinone/public/complete_orders/complete_order.rb
Defined Under Namespace
Classes: CompleteOrders, Currency, Orderbook, Tickers
Instance Attribute Summary collapse
-
#complete_orders ⇒ Object
readonly
Returns the value of attribute complete_orders.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#orderbook ⇒ Object
readonly
Returns the value of attribute orderbook.
-
#ticker ⇒ Object
readonly
Returns the value of attribute ticker.
Class Method Summary collapse
- .get_complete_orders(options = {}, connection = nil) ⇒ Object
- .get_currency(options = {}, connection = nil) ⇒ Object
- .get_orderbook(options = {}, connection = nil) ⇒ Object
- .get_ticker(options = {}, connection = nil) ⇒ Object
Instance Attribute Details
#complete_orders ⇒ Object (readonly)
Returns the value of attribute complete_orders.
10 11 12 |
# File 'lib/coinone/public.rb', line 10 def complete_orders @complete_orders end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
10 11 12 |
# File 'lib/coinone/public.rb', line 10 def currency @currency end |
#orderbook ⇒ Object (readonly)
Returns the value of attribute orderbook.
10 11 12 |
# File 'lib/coinone/public.rb', line 10 def orderbook @orderbook end |
#ticker ⇒ Object (readonly)
Returns the value of attribute ticker.
10 11 12 |
# File 'lib/coinone/public.rb', line 10 def ticker @ticker end |
Class Method Details
.get_complete_orders(options = {}, connection = nil) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/coinone/public.rb', line 32 def get_complete_orders(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/trades", ) puts response @complete_orders = CompleteOrders.new(response) end |
.get_currency(options = {}, connection = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/coinone/public.rb', line 12 def get_currency(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/currency") puts response @currency = Currency.new(response) end |
.get_orderbook(options = {}, connection = nil) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/coinone/public.rb', line 22 def get_orderbook(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/orderbook", ) puts response @orderbook = Orderbook.new(response) end |
.get_ticker(options = {}, connection = nil) ⇒ Object
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/coinone/public.rb', line 42 def get_ticker(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/ticker", ) puts response @ticker = Tickers.new(response) end |