Class: AppConfig

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

Constant Summary collapse

PASSWORD_KEY =
'secret_key'

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostnameObject

Returns the value of attribute hostname.



5
6
7
# File 'lib/models/app_config.rb', line 5

def hostname
  @hostname
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/models/app_config.rb', line 5

def password
  @password
end

#projectObject

Returns the value of attribute project.



5
6
7
# File 'lib/models/app_config.rb', line 5

def project
  @project
end

#usernameObject

Returns the value of attribute username.



5
6
7
# File 'lib/models/app_config.rb', line 5

def username
  @username
end