lib/pylon.rb in datasift-3.7.1 vs lib/pylon.rb in datasift-3.7.2

- old
+ new

@@ -172,11 +172,11 @@ fail BadParametersError, 'hash or id is required' if hash.empty? && id.empty? params = {} params.merge!(hash: hash) unless hash.empty? params.merge!(id: id) unless id.empty? params.merge!(count: count) unless count.nil? - params.merge!(start_time: start_time) unless start_time.nil? - params.merge!(end_time: end_time) unless end_time.nil? + params.merge!(start: start_time) unless start_time.nil? + params.merge!(end: end_time) unless end_time.nil? if filter.empty? DataSift.request(:GET, 'pylon/sample', @config, params) else params.merge!(filter: filter)