Sha256: 3e915460ab9ea4508f97b7fc4e2ad408e54285ff17b1224717caefe3b2bc940e

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

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

module MWS
  module Reports
    module Requests
      class ReportRequest < ::Peddler::Request
        def submit(type, options = {})
          parameters(:request_report)
            .update(report_type: type)
            .update(options)
            .timestamp!
            .format_structured_lists!
            .camelize_keys!

          execute
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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