Class: LedgerSync::Domains::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ledger_sync/domains/store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_moduleObject (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

#nameObject

Returns the value of attribute name.



29
30
31
# File 'lib/ledger_sync/domains/store.rb', line 29

def name
  @name
end

#root_keyObject (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