Class: Polar::Response
Instance Method Summary collapse
-
#initialize(data) ⇒ Response
constructor
A new instance of Response.
- #success ⇒ Object
Methods inherited from Base
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
#success ⇒ Object
7 8 9 |
# File 'lib/polar/response.rb', line 7 def success @data["result"] == 1 end |