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/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
30 31 32 33 34 35 36 |
# File 'lib/coinone/public.rb', line 30 def get_complete_orders(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/trades", ) @complete_orders = CompleteOrders.new(response) @complete_orders end |
.get_currency(options = {}, connection = nil) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/coinone/public.rb', line 12 def get_currency(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/currency") @currency = Currency.new(response) @currency end |
.get_orderbook(options = {}, connection = nil) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/coinone/public.rb', line 21 def get_orderbook(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/orderbook", ) @orderbook = Orderbook.new(response) @orderbook end |
.get_ticker(options = {}, connection = nil) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/coinone/public.rb', line 39 def get_ticker(={}, connection=nil) @connection = connection || Connection.factory() response = @connection.get("/ticker", ) @ticker = Tickers.new(response) @ticker end |