Class: CleverTap::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#failuresObject

Returns the value of attribute failures.



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

def failures
  @failures
end

#responseObject

Returns the value of attribute response.



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

def response
  @response
end

#successObject

Returns the value of attribute success.



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

def success
  @success
end