Sha256: 9f886c76ebce83ec4a1aaea67e561627bfb7d26fb5f609b871b80de771fcb006
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 Bytes
Contents
require 'peddler/request' require 'mws/reports/parsers/report_scheduler' module MWS module Reports module Requests class ReportScheduler < ::Peddler::Request def manage(type, schedule, scheduled_at = nil) options = { report_type: type, schedule: schedule } options.update(scheduled_date: scheduled_at) if scheduled_at parameters(:get_report_count) .update(options) .timestamp! .camelize_keys! execute end def delete(type) manage(type, '_NEVER_') 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_scheduler.rb |
peddler-0.6.4 | lib/mws/reports/requests/report_scheduler.rb |