Class: KF5::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Configuration



6
7
8
9
10
11
# File 'lib/kf5/configuration.rb', line 6

def initialize(options = {})
  options.each { |key, value| 
    instance_variable_set("@#{key}", value)
  }
  @properties = Properties.new(options[:properties] || {})
end

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



4
5
6
# File 'lib/kf5/configuration.rb', line 4

def domain
  @domain
end

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/kf5/configuration.rb', line 4

def key
  @key
end

#propertiesObject (readonly)

Returns the value of attribute properties.



3
4
5
# File 'lib/kf5/configuration.rb', line 3

def properties
  @properties
end