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

- (Response) initialize(status, body, http_headers)

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

- (String) body

Returns:

  • (String)


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

def body
  @body
end

- (WsdlMapper::SvcDesc::Envelope) envelope

Returns The deserialized body

Returns:



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

def envelope
  @envelope
end

- (Hash) http_headers

Returns:

  • (Hash)


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

def http_headers
  @http_headers
end

- (Fixnum) status

Returns:

  • (Fixnum)


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

def status
  @status
end