lib/peddler/reports.rb in peddler-0.2.3 vs lib/peddler/reports.rb in peddler-0.2.4

- old
+ new

@@ -10,20 +10,20 @@ class UnshippedOrdersReport < Peddler::Feeds::Feed alias :unshipped_orders :batch attr_accessor :starts_at, :ends_at, :scheduled MAPPED_PARAMS = { - "ReportID" => "id", - "StartDate" => "starts_at", - "EndDate" => "ends_at", - "DownloadType" => "type", - "Scheduled" => "scheduled", - "ReportStatus" => "status", - "SubmittedDate" => "submitted_at", - "StartedProcessingDate" => "started_processing_at", - "CompletedProcessingDate" => "completed_processing_at", - "CompletedProcesssingDate" => "completed_processing_at"} + 'ReportID' => 'id', + 'StartDate' => 'starts_at', + 'EndDate' => 'ends_at', + 'DownloadType' => 'type', + 'Scheduled' => 'scheduled', + 'ReportStatus' => 'status', + 'SubmittedDate' => 'submitted_at', + 'StartedProcessingDate' => 'started_processing_at', + 'CompletedProcessingDate' => 'completed_processing_at', + 'CompletedProcesssingDate' => 'completed_processing_at'} # Creates new unshipped order report. It will send a request to # Amazon to generate the report if the report ID is not already set. def initialize(transport, params={}) super(transport) @@ -50,13 +50,13 @@ end def generate_report @transport.modernize_request @transport.query_params.merge!({ - "Action" => "generateReport", - "startDate" => @starts_at, - "endDate" => @ends_at, - "downloadType" => @type}) + 'Action' => 'generateReport', + 'startDate' => @starts_at, + 'endDate' => @ends_at, + 'downloadType' => @type}) res = @transport.execute_request process_response(res) end def process_response(res) \ No newline at end of file