def deal(id, options = {})
      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 deal(id, options = {})
      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
Retrieve a deal by id