Class: PgEventstore::BasicConfig

Inherits:
Object
  • Object
show all
Includes:
Extensions::OptionsExtension
Defined in:
lib/pg_eventstore/basic_config.rb,
sig/pg_eventstore/basic_config.rbs

Direct Known Subclasses

Config

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::OptionsExtension

included, #init_default_values, #options_hash, #readonly!, #readonly?, #readonly_error

Constructor Details

#initialize(name:) ⇒ BasicConfig

Returns a new instance of BasicConfig.

Parameters:

  • name (Symbol)

    config's name. Its value matches the appropriate key in PgEventstore.config hash

  • name: (Symbol)
  • options (Object)


10
11
12
13
# File 'lib/pg_eventstore/basic_config.rb', line 10

def initialize(name:, **)
  super
  @name = name
end

Instance Attribute Details

#nameSymbol (readonly)

Returns the value of attribute name.

Returns:

  • (Symbol)


7
8
9
# File 'lib/pg_eventstore/basic_config.rb', line 7

def name
  @name
end