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

Class Method Summary collapse

Instance Attribute Details

#complete_ordersObject (readonly)

Returns the value of attribute complete_orders.



10
11
12
# File 'lib/coinone/public.rb', line 10

def complete_orders
  @complete_orders
end

#currencyObject (readonly)

Returns the value of attribute currency.



10
11
12
# File 'lib/coinone/public.rb', line 10

def currency
  @currency
end

#orderbookObject (readonly)

Returns the value of attribute orderbook.



10
11
12
# File 'lib/coinone/public.rb', line 10

def orderbook
  @orderbook
end

#tickerObject (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(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) ⇒ Object



12
13
14
15
16
17
18
19
# 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) ⇒ Object



21
22
23
24
25
26
27
28
# 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) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# 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