lib/mws/orders/tokenable.rb in mws-orders-0.4.0 vs lib/mws/orders/tokenable.rb in mws-orders-0.5.0
- old
+ new
@@ -1,12 +1,12 @@
# frozen_string_literal: true
module MWS
module Orders
+ # https://docs.developer.amazonservices.com/en_US/dev_guide/DG_NextToken.html
module Tokenable
def next_token
- node = xpath('NextToken').first
- node&.text
+ at_xpath('NextToken')&.text
end
end
end
end