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



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

def self.instance
  @instance ||= new
end

Instance Method Details

#next!Object



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

def next!
  SangerSampleId.create!.sample_id
end