Class: SlonikMigration::Config
- Inherits:
-
Object
- Object
- SlonikMigration::Config
- Defined in:
- lib/slonik_migration/config.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#variables ⇒ Object
Returns the value of attribute variables.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(hash) ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 |
# File 'lib/slonik_migration/config.rb', line 7 def initialize(hash) hash.each do |key, val| send("#{key}=", val) if respond_to?("#{key}=") end end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
5 6 7 |
# File 'lib/slonik_migration/config.rb', line 5 def command @command end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/slonik_migration/config.rb', line 5 def enabled @enabled end |
#owner ⇒ Object
Returns the value of attribute owner.
5 6 7 |
# File 'lib/slonik_migration/config.rb', line 5 def owner @owner end |
#variables ⇒ Object
Returns the value of attribute variables.
5 6 7 |
# File 'lib/slonik_migration/config.rb', line 5 def variables @variables end |