Sha256: 095b67ae7a3a7fc7e1e98a5234e760b2a8d1ccdd01c6087a6498695841090291

Contents?: true

Size: 261 Bytes

Versions: 4

Compression:

Stored size: 261 Bytes

Contents

require 'savon/response'

module Savon
  class Response

    def code
      self.http.code.to_i
    end

    def headers
      self.http.headers
    end

    protected

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

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stir-2.2.3 lib/stir/soap/soap_response.rb
stir-2.2.2 lib/stir/soap/soap_response.rb
stir-2.2.1 lib/stir/soap/soap_response.rb
stir-2.1.1 lib/stir/soap/soap_response.rb