Sha256: 5f753be301240161fd1959acb4b461738dd96c77e0d8115183c62527327e4c88

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

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

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

        private

        def message_hash
          hash = parsed_body['dmDelivery']
          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/delivery_info.rb