Class: ActiveDomain::UniqueCommandIdRepository
- Inherits:
-
Object
- Object
- ActiveDomain::UniqueCommandIdRepository
- Defined in:
- app/models/active_domain/unique_command_id_repository.rb
Class Method Summary collapse
Class Method Details
.new_for(command_name) ⇒ Object
3 4 5 6 |
# File 'app/models/active_domain/unique_command_id_repository.rb', line 3 def self.new_for(command_name) @@commands[command_name] ||= create_or_get(command_name) create_new @@commands[command_name] end |