Sha256: ced8fea8ebf8b9b923f7fe1d74abb69074edba4ed69736cefd468ba40cc7e386

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

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

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

1 entries across 1 versions & 1 rubygems

Version Path
nuncium-0.13.0 lib/nuncium/responses/message.rb