app/models/eligibility_factory.rb
class EligibilityFactory
attr_reader :start_price_threshold
def initialize(auction)
@start_price_threshold = AuctionThreshold.new(auction)
end
def create
if start_price_threshold.small_business?
Eligibilities::SmallBusiness.new
else
Eligibilities::InSam.new
end
end
end