Class: Btce::Trades

Inherits:
PublicOperation show all
Defined in:
lib/btce/api/operations/trades.rb

Instance Attribute Summary collapse

Attributes inherited from PublicOperation

#json, #operation, #pair

Instance Method Summary collapse

Methods inherited from PublicOperation

#load_json

Constructor Details

#initialize(pair) ⇒ Trades

Returns a new instance of Trades.



39
40
41
42
# File 'lib/btce/api/operations/trades.rb', line 39

def initialize(pair)
  super 'trades', pair
  load_trades
end

Instance Attribute Details

#allObject (readonly)

Returns the value of attribute all.



37
38
39
# File 'lib/btce/api/operations/trades.rb', line 37

def all
  @all
end

Instance Method Details

#[](*rest) ⇒ Object



49
50
51
# File 'lib/btce/api/operations/trades.rb', line 49

def [] *rest
  all[*rest]
end