Class: Anima::ConfigMigrator::Addition

Inherits:
Data
  • Object
show all
Defined in:
lib/anima/config_migrator.rb

Overview

A single config key that was added during migration.

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



27
28
29
# File 'lib/anima/config_migrator.rb', line 27

def key
  @key
end

#key [String] key name within the section([String]) ⇒ Object (readonly)

A single config key that was added during migration.



27
# File 'lib/anima/config_migrator.rb', line 27

Addition = Data.define(:section, :key, :value)

#sectionObject (readonly)

Returns the value of attribute section

Returns:

  • (Object)

    the current value of section



27
28
29
# File 'lib/anima/config_migrator.rb', line 27

def section
  @section
end

#section [String] TOML section name([String]) ⇒ Object (readonly)

A single config key that was added during migration.



27
# File 'lib/anima/config_migrator.rb', line 27

Addition = Data.define(:section, :key, :value)

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



27
28
29
# File 'lib/anima/config_migrator.rb', line 27

def value
  @value
end

#value [Object] default value from the template([Object]) ⇒ Object (readonly)

A single config key that was added during migration.



27
# File 'lib/anima/config_migrator.rb', line 27

Addition = Data.define(:section, :key, :value)