Class: MuchKeys::Configuration
- Inherits:
-
Object
- Object
- MuchKeys::Configuration
- Defined in:
- lib/muchkeys/configuration.rb
Instance Attribute Summary collapse
-
#application_name ⇒ Object
Returns the value of attribute application_name.
-
#consul_url ⇒ Object
Returns the value of attribute consul_url.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#search_paths ⇒ Object
Returns the value of attribute search_paths.
-
#secrets_hint ⇒ Object
Returns the value of attribute secrets_hint.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize ⇒ Configuration
constructor
sensible defaults.
Constructor Details
#initialize ⇒ Configuration
sensible defaults
9 10 11 |
# File 'lib/muchkeys/configuration.rb', line 9 def initialize @consul_url = "http://localhost:8500" end |
Instance Attribute Details
#application_name ⇒ Object
Returns the value of attribute application_name.
6 7 8 |
# File 'lib/muchkeys/configuration.rb', line 6 def application_name @application_name end |
#consul_url ⇒ Object
Returns the value of attribute consul_url.
6 7 8 |
# File 'lib/muchkeys/configuration.rb', line 6 def consul_url @consul_url end |
#private_key ⇒ Object
Returns the value of attribute private_key.
6 7 8 |
# File 'lib/muchkeys/configuration.rb', line 6 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
6 7 8 |
# File 'lib/muchkeys/configuration.rb', line 6 def public_key @public_key end |
#search_paths ⇒ Object
Returns the value of attribute search_paths.
6 7 8 |
# File 'lib/muchkeys/configuration.rb', line 6 def search_paths @search_paths end |
#secrets_hint ⇒ Object
Returns the value of attribute secrets_hint.
6 7 8 |
# File 'lib/muchkeys/configuration.rb', line 6 def secrets_hint @secrets_hint end |
Instance Method Details
#attributes ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/muchkeys/configuration.rb', line 19 def attributes { consul_url: @consul_url, private_key: @private_key, public_key: @public_key, application_name: @application_name, search_paths: @search_paths, secrets_hint: @secrets_hint }.delete_if {|k,v| v.nil? } end |