Class: EventMachine::Smsified::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/em-smsified/response.rb

Overview

The result object from the API. Used to access the parsed and raw HTTP response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed, raw) ⇒ Response

Provides the standard response for the library

Parameters:

  • HTTParty result object



35
36
37
38
# File 'lib/em-smsified/response.rb', line 35

def initialize(parsed, raw)
  @data = parsed
  @http = raw
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



29
30
31
# File 'lib/em-smsified/response.rb', line 29

def data
  @data
end

#httpObject (readonly)

Returns the value of attribute http.



29
30
31
# File 'lib/em-smsified/response.rb', line 29

def http
  @http
end