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