Class: Evergreen::Configuration

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

Overview

Configuration for an instance of Evergreen

Instance Attribute Summary collapse

Instance Method Summary collapse

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_passwordObject (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_usernameObject (readonly)

Returns the value of attribute default_username.



6
7
8
# File 'lib/evergreen/configuration.rb', line 6

def default_username
  @default_username
end

#hostObject (readonly)

Returns the value of attribute host.



6
7
8
# File 'lib/evergreen/configuration.rb', line 6

def host
  @host
end

#read_onlyObject (readonly)

Returns the value of attribute read_only.



6
7
8
# File 'lib/evergreen/configuration.rb', line 6

def read_only
  @read_only
end