Class: Boletoman::Services::Soap::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/boletoman/services/soap/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requesterObject (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

#bodyObject



12
13
14
# File 'lib/boletoman/services/soap/response.rb', line 12

def body
  raw_response.body["#{requester.operation}_response".to_sym]
end