Class: Polar::Response

Inherits:
Base
  • Object
show all
Defined in:
lib/polar/response.rb

Instance Method Summary collapse

Methods inherited from Base

#method_missing, #to_h

Constructor Details

#initialize(data) ⇒ Response

Returns a new instance of Response.



3
4
5
# File 'lib/polar/response.rb', line 3

def initialize(data)
  super(data)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Polar::Base

Instance Method Details

#successObject



7
8
9
# File 'lib/polar/response.rb', line 7

def success
  @data["result"] == 1
end