Class: Boletoman::Services::Soap::Response
- Inherits:
-
Object
- Object
- Boletoman::Services::Soap::Response
- Defined in:
- lib/boletoman/services/soap/response.rb
Direct Known Subclasses
Boletoman::Services::Santander::BillingResponse, Boletoman::Services::Santander::TicketResponse
Instance Attribute Summary collapse
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
-
#requester ⇒ Object
readonly
Returns the value of attribute requester.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(raw_response, requester) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(raw_response, requester) ⇒ Response
Returns a new instance of Response.
7 8 9 10 |
# File 'lib/boletoman/services/soap/response.rb', line 7 def initialize(raw_response, requester) @raw_response = raw_response @requester = requester end |
Instance Attribute Details
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
5 6 7 |
# File 'lib/boletoman/services/soap/response.rb', line 5 def raw_response @raw_response end |
#requester ⇒ Object (readonly)
Returns the value of attribute requester.
5 6 7 |
# File 'lib/boletoman/services/soap/response.rb', line 5 def requester @requester end |
Instance Method Details
#body ⇒ Object
12 13 14 |
# File 'lib/boletoman/services/soap/response.rb', line 12 def body raw_response.body["#{requester.operation}_response".to_sym] end |