Class: Shanon::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/shanon/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



23
24
25
26
27
28
# File 'lib/shanon/config.rb', line 23

def initialize
  @api_key    = nil
  @fqdn       = nil
  @password   = nil
  @secret_key = nil
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



20
21
22
# File 'lib/shanon/config.rb', line 20

def api_key
  @api_key
end

#fqdnObject

Returns the value of attribute fqdn.



20
21
22
# File 'lib/shanon/config.rb', line 20

def fqdn
  @fqdn
end

#param_nameObject

If param_name was given as a callable object, call it when returning



31
32
33
# File 'lib/shanon/config.rb', line 31

def param_name
  @param_name.respond_to?(:call) ? @param_name.call : @param_name
end

#passwordObject

Returns the value of attribute password.



20
21
22
# File 'lib/shanon/config.rb', line 20

def password
  @password
end

#secret_keyObject

Returns the value of attribute secret_key.



20
21
22
# File 'lib/shanon/config.rb', line 20

def secret_key
  @secret_key
end