lib/mws/orders/service_status.rb in mws-orders-0.4.0 vs lib/mws/orders/service_status.rb in mws-orders-0.5.0

- old
+ new

@@ -3,20 +3,21 @@ require 'mws/orders/entity' require 'mws/orders/message' module MWS module Orders + # https://docs.developer.amazonservices.com/en_US/orders-2013-09-01/MWS_GetServiceStatus.html class ServiceStatus < Entity attribute(:status) do - text_at_xpath('Status') + string('Status') end attribute(:timestamp) do - time_at_xpath('Timestamp') + time('Timestamp') end attribute(:message_id) do - text_at_xpath('MessageId') + string('MessageId') end attribute(:messages) do xpath('Messages/Message').map { |node| Message.new(node) } end