Class: OpenMarket::SendSmsResponse
- Defined in:
- lib/open_market/response.rb
Instance Attribute Summary collapse
-
#carrier_id ⇒ Object
readonly
Returns the value of attribute carrier_id.
-
#ticket_id ⇒ Object
readonly
Returns the value of attribute ticket_id.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(http_response, carrier_id) ⇒ SendSmsResponse
constructor
A new instance of SendSmsResponse.
Constructor Details
#initialize(http_response, carrier_id) ⇒ SendSmsResponse
79 80 81 82 83 84 85 |
# File 'lib/open_market/response.rb', line 79 def initialize(http_response, carrier_id) super(http_response) @carrier_id = carrier_id if ticket = xml.elements["ticket"] @ticket_id = ticket.attributes["id"] end end |
Instance Attribute Details
#carrier_id ⇒ Object (readonly)
Returns the value of attribute carrier_id.
78 79 80 |
# File 'lib/open_market/response.rb', line 78 def carrier_id @carrier_id end |
#ticket_id ⇒ Object (readonly)
Returns the value of attribute ticket_id.
78 79 80 |
# File 'lib/open_market/response.rb', line 78 def ticket_id @ticket_id end |