Class: Boletoman::Services::Santander::TicketResponse
- Inherits:
-
Boletoman::Services::Soap::Response
- Object
- Boletoman::Services::Soap::Response
- Boletoman::Services::Santander::TicketResponse
- Defined in:
- lib/boletoman/services/santander/ticket_response.rb
Instance Attribute Summary
Attributes inherited from Boletoman::Services::Soap::Response
Instance Method Summary collapse
Methods inherited from Boletoman::Services::Soap::Response
Constructor Details
This class inherits a constructor from Boletoman::Services::Soap::Response
Instance Method Details
#success? ⇒ Boolean
7 8 9 |
# File 'lib/boletoman/services/santander/ticket_response.rb', line 7 def success? body[:ticket_response][:ret_code] == "0" end |
#ticket ⇒ Object
11 12 13 |
# File 'lib/boletoman/services/santander/ticket_response.rb', line 11 def ticket body[:ticket_response][:ticket] end |