Class: IdGenerator::Configuration
- Inherits:
-
Object
- Object
- IdGenerator::Configuration
- Defined in:
- lib/id_generator/configuration.rb
Instance Attribute Summary collapse
-
#context_id ⇒ Object
Returns the value of attribute context_id.
Instance Method Summary collapse
-
#initialize(context_id: 0) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(context_id: 0) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/id_generator/configuration.rb', line 5 def initialize(context_id: 0) self.context_id = context_id end |
Instance Attribute Details
#context_id ⇒ Object
Returns the value of attribute context_id.
3 4 5 |
# File 'lib/id_generator/configuration.rb', line 3 def context_id @context_id end |