Sha256: d3a2d2dd79a2cd328291e97a6d5dc97178cc4e1dd04e74e03d3f7cd64f2e7691

Contents?: true

Size: 311 Bytes

Versions: 10

Compression:

Stored size: 311 Bytes

Contents

module RubyIsds
  class Response
    attr_accessor :status, :body

    def initialize(response)
      @response = Hash.from_xml(response.body)
    end

    def parsed_body
      @response['Envelope']['Body'][result_key]
    end

    def result_key
      @response['Envelope']['Body'].first[0]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby_isds-0.12.0 lib/ruby_isds/response.rb
ruby_isds-0.11.1 lib/ruby_isds/response.rb
ruby_isds-0.11.0 lib/ruby_isds/response.rb
ruby_isds-0.10.5 lib/ruby_isds/response.rb
ruby_isds-0.10.4 lib/ruby_isds/response.rb
ruby_isds-0.10.3 lib/ruby_isds/response.rb
ruby_isds-0.10.2 lib/ruby_isds/response.rb
ruby_isds-0.10.1 lib/ruby_isds/response.rb
ruby_isds-0.9.1 lib/ruby_isds/response.rb
ruby_isds-0.9.0 lib/ruby_isds/response.rb