Sha256: df45de4ebc1126f169234da1935332479f70b2f9733e3c86992c18729f82b994

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

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

module MWS
  module Reports
    module Requests
      class ReportList < ::Peddler::Request
        def get(options = {})
          parameters(:get_report_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_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_list.rb
peddler-0.6.4 lib/mws/reports/requests/report_list.rb