Class: Wptools::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/wptools.rb

Overview

Your code goes hereā€¦

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dbnameObject (readonly)

Returns the value of attribute dbname.



23
24
25
# File 'lib/wptools.rb', line 23

def dbname
  @dbname
end

#dbpasswdObject (readonly)

Returns the value of attribute dbpasswd.



23
24
25
# File 'lib/wptools.rb', line 23

def dbpasswd
  @dbpasswd
end

#dbuserObject (readonly)

Returns the value of attribute dbuser.



23
24
25
# File 'lib/wptools.rb', line 23

def dbuser
  @dbuser
end