Sha256: f5d53c807fdf7f420c2b828e3ea495e3ea81c81495e057b52014ebfd273529ca

Contents?: true

Size: 442 Bytes

Versions: 11

Compression:

Stored size: 442 Bytes

Contents

module RubyIsds
  module Responses
    module Messages
      class Envelope < ::RubyIsds::Response
        def initialize(response)
          super
        end

        def message
          ::RubyIsds::DataMessage.new(message_hash)
        end

        private

        def message_hash
          hash = parsed_body['dmReturnedMessageEnvelope']
          hash['dmDm'].delete('xmlns:p')
          hash
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_isds-0.13.0 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.12.0 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.11.1 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.11.0 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.10.5 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.10.4 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.10.3 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.10.2 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.10.1 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.9.1 lib/ruby_isds/responses/messages/envelope.rb
ruby_isds-0.9.0 lib/ruby_isds/responses/messages/envelope.rb