Class: Btce::PublicOperation

Inherits:
Object
  • Object
show all
Defined in:
lib/btce.rb

Direct Known Subclasses

Depth, Fee, Ticker, Trades

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operation, pair) ⇒ PublicOperation

Returns a new instance of PublicOperation.



140
141
142
143
144
# File 'lib/btce.rb', line 140

def initialize(operation, pair)
  @operation = operation
  @pair = pair
  load_json
end

Instance Attribute Details

#jsonObject (readonly)

Returns the value of attribute json.



138
139
140
# File 'lib/btce.rb', line 138

def json
  @json
end

#operationObject (readonly)

Returns the value of attribute operation.



138
139
140
# File 'lib/btce.rb', line 138

def operation
  @operation
end

#pairObject (readonly)

Returns the value of attribute pair.



138
139
140
# File 'lib/btce.rb', line 138

def pair
  @pair
end

Instance Method Details

#load_jsonObject



146
147
148
# File 'lib/btce.rb', line 146

def load_json
  @json = PublicAPI.get_pair_operation_json pair, operation
end