Class: TorgApi::Models::Offer

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/torg_api/models/offer.rb

Overview

TORG Offer model

Class Method Summary collapse

Class Method Details

.for_bid_lot_num(bidder_id, lot_id, num) ⇒ Object



7
8
9
# File 'lib/torg_api/models/offer.rb', line 7

def self.for_bid_lot_num(bidder_id, lot_id, num)
  where(bidder_id: bidder_id).where(lot_id: lot_id).where(num: num).where(version: 0).take
end