Sha256: f266d924e5b286f09279fd64bb2560986169f939e7ce6976e3a7b2b28c6d0e69

Contents?: true

Size: 678 Bytes

Versions: 2

Compression:

Stored size: 678 Bytes

Contents

require 'peddler/request'
require 'mws/reports/parsers/report_request_list'

module MWS
  module Reports
    module Requests
      class ReportRequestList < ::Peddler::Request
        def get(options = {})
          parameters(:get_report_request_list)
            .update(options)
            .timestamp!
            .format_structured_lists!
            .camelize_keys!

          execute
        end

        def get_by_next_token(token = next_token)
          return false unless token

          parameters(:get_report_request_list_by_next_token)
            .update(next_token: token)
            .camelize_keys!

          execute
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/mws/reports/requests/report_request_list.rb
peddler-0.6.4 lib/mws/reports/requests/report_request_list.rb