Class: EventMachine::Smsified::ResponseProxy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#parsedObject (readonly)

Returns the value of attribute parsed.



8
9
10
# File 'lib/em-smsified/response.rb', line 8

def parsed
  @parsed
end

#rawObject (readonly)

Returns the value of attribute raw.



8
9
10
# File 'lib/em-smsified/response.rb', line 8

def raw
  @raw
end