Module: Billing::Factory

Defined in:
app/models/billing/factory.rb,
app/models/billing/factory/base.rb,
app/models/billing/factory/sequencing.rb,
app/models/billing/factory/library_creation.rb

Defined Under Namespace

Classes: Base, LibraryCreation, Sequencing

Class Method Summary collapse

Class Method Details

.build(request) ⇒ Object


3
4
5
6
7
8
# File 'app/models/billing/factory.rb', line 3

def self.build(request)
  return Sequencing.new(request: request) if request.billing_product.sequencing?
  return LibraryCreation.new(request: request) if request.billing_product.library_creation?

  Base.new(request: request)
end