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

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



32
33
34
35
36
37
38
39
# File 'lib/coinone/public.rb', line 32

def get_complete_orders(options={}, connection=nil)
 @connection = connection || Connection.factory(options)
 response = @connection.get("/trades", options)

 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(options={}, connection=nil)
 @connection = connection || Connection.factory(options)
 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(options={}, connection=nil)
 @connection = connection || Connection.factory(options)
 response = @connection.get("/orderbook", options)

 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(options={}, connection=nil)
 @connection = connection || Connection.factory(options)
 response = @connection.get("/ticker", options)

 puts response

 @ticker = Tickers.new(response)


end