Module: ContextHubVault
- Defined in:
- lib/context_hub_vault.rb,
lib/context_hub_vault/client.rb,
lib/context_hub_vault/version.rb
Defined Under Namespace
Classes: Client
Constant Summary collapse
- VERSION =
'0.0.1'
Class Attribute Summary collapse
-
.app_id ⇒ Object
Returns the value of attribute app_id.
-
.auth_token ⇒ Object
Returns the value of attribute auth_token.
-
.host ⇒ Object
Returns the value of attribute host.
-
.version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
config/initializers/context_hub_vault.rb (for instance).
Class Attribute Details
.app_id ⇒ Object
Returns the value of attribute app_id.
6 7 8 |
# File 'lib/context_hub_vault.rb', line 6 def app_id @app_id end |
.auth_token ⇒ Object
Returns the value of attribute auth_token.
6 7 8 |
# File 'lib/context_hub_vault.rb', line 6 def auth_token @auth_token end |
.host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/context_hub_vault.rb', line 6 def host @host end |
.version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/context_hub_vault.rb', line 6 def version @version end |
Class Method Details
.configure {|_self| ... } ⇒ Object
config/initializers/context_hub_vault.rb (for instance)
ContextHubVault.configure do |config|
config.host = 'example.com'
config.auth_token = 'qwertyasdfqwerty'
config.version = 42
config.app_id = 50
end
elsewhere
client = ContextHubVault::Client.new
20 21 22 23 |
# File 'lib/context_hub_vault.rb', line 20 def configure yield self true end |