Sha256: 4cb24bfc736decec8529faaa3e7d823b06f716f71b914803085bbb15d196b8d7

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

require 'mws/orders/entity'
require 'mws/orders/message'

module MWS
  module Orders
    class ServiceStatus < Entity
      attribute(:status) do
        text_at_xpath('Status')
      end

      attribute(:timestamp) do
        time_at_xpath('Timestamp')
      end

      attribute(:message_id) do
        text_at_xpath('MessageId')
      end

      attribute(:messages) do
        xpath('Messages/Message').map { |node| Message.new(node) }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mws-orders-0.4.0 lib/mws/orders/service_status.rb