Class: Handsoap::SoapResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/handsoap/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document, http_response) ⇒ SoapResponse



57
58
59
60
# File 'lib/handsoap/service.rb', line 57

def initialize(document, http_response)
  @document = document
  @http_response = http_response
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/handsoap/service.rb', line 61

def method_missing(method, *args)
  if @document.respond_to?(method)
    @document.__send__ method, *args
  else
    super
  end
end

Instance Attribute Details

#documentObject (readonly)

Returns the value of attribute document.



56
57
58
# File 'lib/handsoap/service.rb', line 56

def document
  @document
end

#http_responseObject (readonly)

Returns the value of attribute http_response.



56
57
58
# File 'lib/handsoap/service.rb', line 56

def http_response
  @http_response
end