Class: Jerakia::Config
- Inherits:
-
Object
- Object
- Jerakia::Config
- Defined in:
- lib/jerakia/config.rb
Instance Attribute Summary collapse
-
#policydir ⇒ Object
readonly
Returns the value of attribute policydir.
-
#server_url ⇒ Object
readonly
Returns the value of attribute server_url.
Class Method Summary collapse
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(config) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(config) ⇒ Config
Returns a new instance of Config.
12 13 14 15 16 |
# File 'lib/jerakia/config.rb', line 12 def initialize(config) @policydir = config['policydir'] @server_url = config['server_url'] @configdata = config end |
Instance Attribute Details
#policydir ⇒ Object (readonly)
Returns the value of attribute policydir.
4 5 6 |
# File 'lib/jerakia/config.rb', line 4 def policydir @policydir end |
#server_url ⇒ Object (readonly)
Returns the value of attribute server_url.
5 6 7 |
# File 'lib/jerakia/config.rb', line 5 def server_url @server_url end |
Class Method Details
Instance Method Details
#[](key) ⇒ Object
18 19 20 |
# File 'lib/jerakia/config.rb', line 18 def [](key) @configdata[key.to_s] end |