Class: CleverTap::Response
- Inherits:
-
Object
- Object
- CleverTap::Response
- Defined in:
- lib/clever_tap/response.rb
Instance Attribute Summary collapse
-
#failures ⇒ Object
Returns the value of attribute failures.
-
#response ⇒ Object
Returns the value of attribute response.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
5 6 7 8 |
# File 'lib/clever_tap/response.rb', line 5 def initialize(response) @response = JSON.parse(response.body) process_response end |
Instance Attribute Details
#failures ⇒ Object
Returns the value of attribute failures.
3 4 5 |
# File 'lib/clever_tap/response.rb', line 3 def failures @failures end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/clever_tap/response.rb', line 3 def response @response end |
#success ⇒ Object
Returns the value of attribute success.
3 4 5 |
# File 'lib/clever_tap/response.rb', line 3 def success @success end |