Class: Shanon::Config
- Inherits:
-
Object
- Object
- Shanon::Config
- Defined in:
- lib/shanon/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#fqdn ⇒ Object
Returns the value of attribute fqdn.
-
#param_name ⇒ Object
If param_name was given as a callable object, call it when returning.
-
#password ⇒ Object
Returns the value of attribute password.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_key ⇒ Object
Returns the value of attribute api_key.
20 21 22 |
# File 'lib/shanon/config.rb', line 20 def api_key @api_key end |
#fqdn ⇒ Object
Returns the value of attribute fqdn.
20 21 22 |
# File 'lib/shanon/config.rb', line 20 def fqdn @fqdn end |
#param_name ⇒ Object
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 |
#password ⇒ Object
Returns the value of attribute password.
20 21 22 |
# File 'lib/shanon/config.rb', line 20 def password @password end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
20 21 22 |
# File 'lib/shanon/config.rb', line 20 def secret_key @secret_key end |