Class: Boletoman::Services::Santander::TicketResponse

Inherits:
Boletoman::Services::Soap::Response show all
Defined in:
lib/boletoman/services/santander/ticket_response.rb

Instance Attribute Summary

Attributes inherited from Boletoman::Services::Soap::Response

#raw_response, #requester

Instance Method Summary collapse

Methods inherited from Boletoman::Services::Soap::Response

#body, #initialize

Constructor Details

This class inherits a constructor from Boletoman::Services::Soap::Response

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/boletoman/services/santander/ticket_response.rb', line 7

def success?
  body[:ticket_response][:ret_code] == "0"
end

#ticketObject



11
12
13
# File 'lib/boletoman/services/santander/ticket_response.rb', line 11

def ticket
  body[:ticket_response][:ticket]
end