Class: Muck::ConfigDSL::DatabaseDSL
- Inherits:
-
Object
- Object
- Muck::ConfigDSL::DatabaseDSL
- Defined in:
- lib/muck/config_dsl/database_dsl.rb
Instance Method Summary collapse
- #hostname(hostname) ⇒ Object
-
#initialize(hash) ⇒ DatabaseDSL
constructor
A new instance of DatabaseDSL.
- #name(name) ⇒ Object
- #password(password) ⇒ Object
- #username(username) ⇒ Object
Constructor Details
#initialize(hash) ⇒ DatabaseDSL
Returns a new instance of DatabaseDSL.
5 6 7 |
# File 'lib/muck/config_dsl/database_dsl.rb', line 5 def initialize(hash) @hash = hash end |
Instance Method Details
#hostname(hostname) ⇒ Object
13 14 15 |
# File 'lib/muck/config_dsl/database_dsl.rb', line 13 def hostname(hostname) @hash[:hostname] = hostname end |
#name(name) ⇒ Object
9 10 11 |
# File 'lib/muck/config_dsl/database_dsl.rb', line 9 def name(name) @hash[:name] = name end |
#password(password) ⇒ Object
21 22 23 |
# File 'lib/muck/config_dsl/database_dsl.rb', line 21 def password(password) @hash[:password] = password end |
#username(username) ⇒ Object
17 18 19 |
# File 'lib/muck/config_dsl/database_dsl.rb', line 17 def username(username) @hash[:username] = username end |