Class: Savon::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/stir/soap/soap_response.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object (protected)



16
17
18
# File 'lib/stir/soap/soap_response.rb', line 16

def method_missing(name, *args, &block)
  self.body[args.first]
end

Instance Method Details

#codeObject



6
7
8
# File 'lib/stir/soap/soap_response.rb', line 6

def code
  self.http.code.to_i
end

#headersObject



10
11
12
# File 'lib/stir/soap/soap_response.rb', line 10

def headers
  self.http.headers
end