Sha256: cd649b9a232c57d571ca0b2cad1172763d954c853272713aeb3ac906b706292a

Contents?: true

Size: 377 Bytes

Versions: 11

Compression:

Stored size: 377 Bytes

Contents

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

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

      private

      def message_hash
        hash = parsed_body['dmReturnedMessage']
        hash['dmDm'].delete('xmlns:p')
        hash
      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/message.rb
ruby_isds-0.12.0 lib/ruby_isds/responses/message.rb
ruby_isds-0.11.1 lib/ruby_isds/responses/message.rb
ruby_isds-0.11.0 lib/ruby_isds/responses/message.rb
ruby_isds-0.10.5 lib/ruby_isds/responses/message.rb
ruby_isds-0.10.4 lib/ruby_isds/responses/message.rb
ruby_isds-0.10.3 lib/ruby_isds/responses/message.rb
ruby_isds-0.10.2 lib/ruby_isds/responses/message.rb
ruby_isds-0.10.1 lib/ruby_isds/responses/message.rb
ruby_isds-0.9.1 lib/ruby_isds/responses/message.rb
ruby_isds-0.9.0 lib/ruby_isds/responses/message.rb