lib/rsqoot/click.rb in rsqoot-0.5.5 vs lib/rsqoot/click.rb in rsqoot-0.5.6

- old
+ new

@@ -5,17 +5,17 @@ # # @param [String] :to Start date # @param [String] :from End date # # @return [RSqoot::SqootClick] - def clicks(options={}) + def clicks(options = {}) options = update_by_expire_time options if clicks_not_latest?(options) @rsqoot_clicks = get('clicks', options, SqootClick) @rsqoot_clicks = @rsqoot_clicks.clicks if @rsqoot_clicks + @rsqoot_clicks = @rsqoot_clicks.clicks.map(&:click) if @rsqoot_clicks.clicks end - logger({uri: sqoot_query_uri, records: @rsqoot_clicks, type: 'clicks', opts: options}) + logger(uri: sqoot_query_uri, records: @rsqoot_clicks, type: 'clicks', opts: options) @rsqoot_clicks end - end -end \ No newline at end of file +end