Class: EventMachine::Smsified::ResponseProxy
- Inherits:
-
Object
- Object
- EventMachine::Smsified::ResponseProxy
- Defined in:
- lib/em-smsified/response.rb
Overview
Functions as a proxy on the EventMachine HTTP Response so you can get the raw and parsed response
Instance Attribute Summary collapse
-
#parsed ⇒ Object
readonly
Returns the value of attribute parsed.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(parsed, raw) ⇒ ResponseProxy
constructor
A new instance of ResponseProxy.
Constructor Details
#initialize(parsed, raw) ⇒ ResponseProxy
Returns a new instance of ResponseProxy.
10 11 12 13 |
# File 'lib/em-smsified/response.rb', line 10 def initialize(parsed, raw) @parsed = parsed @raw = raw end |
Instance Attribute Details
#parsed ⇒ Object (readonly)
Returns the value of attribute parsed.
8 9 10 |
# File 'lib/em-smsified/response.rb', line 8 def parsed @parsed end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
8 9 10 |
# File 'lib/em-smsified/response.rb', line 8 def raw @raw end |