Class: SangerSampleId::Factory

Inherits:
Object
  • Object
show all
Defined in:
app/models/sanger_sample_id.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject


3
4
5
# File 'app/models/sanger_sample_id.rb', line 3

def self.instance
  @instance ||= new
end

Instance Method Details

#next!Object


7
8
9
# File 'app/models/sanger_sample_id.rb', line 7

def next!
  SangerSampleId.create!.sample_id
end