Class: Evergreen::Configuration
- Inherits:
-
Object
- Object
- Evergreen::Configuration
- Defined in:
- lib/evergreen/configuration.rb
Overview
Configuration for an instance of Evergreen
Instance Attribute Summary collapse
-
#default_password ⇒ Object
readonly
Returns the value of attribute default_password.
-
#default_username ⇒ Object
readonly
Returns the value of attribute default_username.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#read_only ⇒ Object
readonly
Returns the value of attribute read_only.
Instance Method Summary collapse
-
#initialize(config_hash) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(config_hash) ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 |
# File 'lib/evergreen/configuration.rb', line 8 def initialize(config_hash) @read_only = true config_hash.each_pair do |key, value| instance_variable_set("@#{key}", value) end configuration_complete end |
Instance Attribute Details
#default_password ⇒ Object (readonly)
Returns the value of attribute default_password.
6 7 8 |
# File 'lib/evergreen/configuration.rb', line 6 def default_password @default_password end |
#default_username ⇒ Object (readonly)
Returns the value of attribute default_username.
6 7 8 |
# File 'lib/evergreen/configuration.rb', line 6 def default_username @default_username end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
6 7 8 |
# File 'lib/evergreen/configuration.rb', line 6 def host @host end |
#read_only ⇒ Object (readonly)
Returns the value of attribute read_only.
6 7 8 |
# File 'lib/evergreen/configuration.rb', line 6 def read_only @read_only end |