lib/rsqoot/deal.rb in rsqoot-0.5.1 vs lib/rsqoot/deal.rb in rsqoot-0.5.2

- old
+ new

@@ -14,10 +14,11 @@ uniq = !!options.delete(:uniq) @rsqoot_deals = get('deals', options, SqootDeal) || [] @rsqoot_deals = @rsqoot_deals.deals.map(&:deal) if !@rsqoot_deals.empty? @rsqoot_deals = uniq_deals(@rsqoot_deals) if uniq end + logger({uri: sqoot_query_uri, records: @rsqoot_deals, type: 'deals', opts: options}) @rsqoot_deals end # Retrieve a deal by id # @@ -25,9 +26,10 @@ options = update_by_expire_time options if deal_not_latest?(id) @rsqoot_deal = get("deals/#{id}", options, SqootDeal) @rsqoot_deal = @rsqoot_deal.deal if @rsqoot_deal end + logger({uri: sqoot_query_uri, records: [@rsqoot_deal], type: 'deal', opts: options}) @rsqoot_deal end def impression(deal_id, options={}) url_generator("deals/#{deal_id}/image", options, require_key = true).first.to_s \ No newline at end of file