Class: LedgerSync::Domains::Configuration
- Inherits:
-
Object
- Object
- LedgerSync::Domains::Configuration
- Defined in:
- lib/ledger_sync/domains/store.rb
Instance Attribute Summary collapse
-
#base_module ⇒ Object
readonly
Returns the value of attribute base_module.
-
#name ⇒ Object
Returns the value of attribute name.
-
#root_key ⇒ Object
readonly
Returns the value of attribute root_key.
Instance Method Summary collapse
-
#initialize(root_key, base_module:) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(root_key, base_module:) ⇒ Configuration
Returns a new instance of Configuration.
32 33 34 35 36 |
# File 'lib/ledger_sync/domains/store.rb', line 32 def initialize(root_key, base_module:) @root_key = root_key.to_sym @name = root_key.to_s.capitalize @base_module = base_module end |
Instance Attribute Details
#base_module ⇒ Object (readonly)
Returns the value of attribute base_module.
30 31 32 |
# File 'lib/ledger_sync/domains/store.rb', line 30 def base_module @base_module end |
#name ⇒ Object
Returns the value of attribute name.
29 30 31 |
# File 'lib/ledger_sync/domains/store.rb', line 29 def name @name end |
#root_key ⇒ Object (readonly)
Returns the value of attribute root_key.
30 31 32 |
# File 'lib/ledger_sync/domains/store.rb', line 30 def root_key @root_key end |