Class: Wptools::Config
- Inherits:
-
Object
- Object
- Wptools::Config
- Defined in:
- lib/wptools.rb
Overview
Your code goes hereā¦
Instance Attribute Summary collapse
-
#dbname ⇒ Object
readonly
Returns the value of attribute dbname.
-
#dbpasswd ⇒ Object
readonly
Returns the value of attribute dbpasswd.
-
#dbuser ⇒ Object
readonly
Returns the value of attribute dbuser.
Instance Method Summary collapse
-
#initialize(config) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(config) ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 22 |
# File 'lib/wptools.rb', line 17 def initialize(config) @config = config @dbname = config_value('local', 'dbname', true) @dbuser = config_value('local', 'dbuser', true) @dbpasswd = config_value('local', 'dbpasswd', true) end |
Instance Attribute Details
#dbname ⇒ Object (readonly)
Returns the value of attribute dbname.
23 24 25 |
# File 'lib/wptools.rb', line 23 def dbname @dbname end |
#dbpasswd ⇒ Object (readonly)
Returns the value of attribute dbpasswd.
23 24 25 |
# File 'lib/wptools.rb', line 23 def dbpasswd @dbpasswd end |
#dbuser ⇒ Object (readonly)
Returns the value of attribute dbuser.
23 24 25 |
# File 'lib/wptools.rb', line 23 def dbuser @dbuser end |