Class: Btce::Types::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Response

from JSON.parse



30
31
32
33
34
# File 'lib/btce/types.rb', line 30

def initialize(data) # from JSON.parse
  @success = data['success']
  @return = data['return']
  @error = data['error']
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



28
29
30
# File 'lib/btce/types.rb', line 28

def error
  @error
end

#returnObject (readonly)

Returns the value of attribute return.



27
28
29
# File 'lib/btce/types.rb', line 27

def return
  @return
end

#successObject (readonly)

Returns the value of attribute success.



26
27
28
# File 'lib/btce/types.rb', line 26

def success
  @success
end