Class: AppConfig
- Inherits:
-
Object
- Object
- AppConfig
- Defined in:
- lib/models/app_config.rb
Constant Summary collapse
- PASSWORD_KEY =
'secret_key'
Instance Attribute Summary collapse
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#password ⇒ Object
Returns the value of attribute password.
-
#project ⇒ Object
Returns the value of attribute project.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ AppConfig
constructor
A new instance of AppConfig.
Constructor Details
#initialize(args = {}) ⇒ AppConfig
Returns a new instance of AppConfig.
7 8 9 |
# File 'lib/models/app_config.rb', line 7 def initialize args={} args.each { |arg, val| self.send("#{arg}=", val) } end |
Instance Attribute Details
#hostname ⇒ Object
Returns the value of attribute hostname.
5 6 7 |
# File 'lib/models/app_config.rb', line 5 def hostname @hostname end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/models/app_config.rb', line 5 def password @password end |
#project ⇒ Object
Returns the value of attribute project.
5 6 7 |
# File 'lib/models/app_config.rb', line 5 def project @project end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/models/app_config.rb', line 5 def username @username end |