Sha256: f3b29f87a89ab6c5360930e55f8a74870e390849fce51b34bee7d0f3c6c1f91d

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

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

        def message
          ::Nuncium::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

1 entries across 1 versions & 1 rubygems

Version Path
nuncium-0.13.0 lib/nuncium/responses/messages/envelope.rb