Sha256: 25f92d375617f7572ceca9f5c1745b1edf71f3fa93d4b150ce8bef10bbf74c3e

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

require 'mws/orders/entity'
require 'mws/orders/service_status_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| ServiceStatusMessage.new(node) }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mws-orders-0.3.1 lib/mws/orders/service_status.rb
mws-orders-0.3.0 lib/mws/orders/service_status.rb