Class: OpenMarket::SendSmsResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/open_market/response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#code, #description

Instance Method Summary collapse

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_idObject (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_idObject (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