Class: EventMachine::Smsified::Response
- Inherits:
-
Object
- Object
- EventMachine::Smsified::Response
- 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
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#http ⇒ Object
readonly
Returns the value of attribute http.
Instance Method Summary collapse
-
#initialize(parsed, raw) ⇒ Response
constructor
Provides the standard response for the library.
Constructor Details
#initialize(parsed, raw) ⇒ Response
Provides the standard response for the library
35 36 37 38 |
# File 'lib/em-smsified/response.rb', line 35 def initialize(parsed, raw) @data = parsed @http = raw end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
29 30 31 |
# File 'lib/em-smsified/response.rb', line 29 def data @data end |
#http ⇒ Object (readonly)
Returns the value of attribute http.
29 30 31 |
# File 'lib/em-smsified/response.rb', line 29 def http @http end |