Class: WsdlMapper::Runtime::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl_mapper/runtime/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body, http_headers) ⇒ Response

Returns a new instance of Response.

Parameters:

  • status (Fixnum)

    HTTP response code

  • body (String)

    HTTP response body

  • http_headers (Hash)

    HTTP response headers



19
20
21
22
23
# File 'lib/wsdl_mapper/runtime/response.rb', line 19

def initialize(status, body, http_headers)
  @status = status
  @body = body
  @http_headers = http_headers
end

Instance Attribute Details

#bodyString

Returns:

  • (String)


7
8
9
# File 'lib/wsdl_mapper/runtime/response.rb', line 7

def body
  @body
end

#envelopeWsdlMapper::SvcDesc::Envelope

Returns The deserialized body.

Returns:



7
8
9
# File 'lib/wsdl_mapper/runtime/response.rb', line 7

def envelope
  @envelope
end

#http_headersHash

Returns:

  • (Hash)


7
8
9
# File 'lib/wsdl_mapper/runtime/response.rb', line 7

def http_headers
  @http_headers
end

#statusFixnum

Returns:

  • (Fixnum)


7
8
9
# File 'lib/wsdl_mapper/runtime/response.rb', line 7

def status
  @status
end