Sha256: 7105a494e0fe65f745186932db6e6bd0da7d1b3d7987250dd9df41177ae9c298

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
mws-orders-0.2.1 lib/mws/orders/service_status.rb
mws-orders-0.2.0 lib/mws/orders/service_status.rb
mws-orders-0.1.1 lib/mws/orders/service_status.rb
mws-orders-0.1.0 lib/mws/orders/service_status.rb