Class: TorgApi::Models::OfferSpecification

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

Class Method Summary collapse

Class Method Details

.for_offer_spec(offer_id, spec_id) ⇒ Object



4
5
6
# File 'lib/torg_api/models/offer_specification.rb', line 4

def self.for_offer_spec(offer_id, spec_id)
  where(offer_id: offer_id).where(specification_id: spec_id).take
end