Class: PatchRetention::Configuration
- Inherits:
-
Object
- Object
- PatchRetention::Configuration
- Defined in:
- lib/patch_retention/configuration.rb
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#proxy_url ⇒ Object
Returns the value of attribute proxy_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/patch_retention/configuration.rb', line 7 def initialize @api_url = ENV.fetch("PATCH_RETENTION_API_URL", "https://api.patchretention.com/v2") @client_id = ENV.fetch("PATCH_RETENTION_CLIENT_ID", nil) @client_secret = ENV.fetch("PATCH_RETENTION_CLIENT_SECRET", nil) @proxy_url = ENV.fetch("PATCH_RETENTION_PROXY_URL", nil) end |
Instance Attribute Details
#api_url ⇒ Object
Returns the value of attribute api_url.
5 6 7 |
# File 'lib/patch_retention/configuration.rb', line 5 def api_url @api_url end |
#client_id ⇒ Object
Returns the value of attribute client_id.
5 6 7 |
# File 'lib/patch_retention/configuration.rb', line 5 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
5 6 7 |
# File 'lib/patch_retention/configuration.rb', line 5 def client_secret @client_secret end |
#proxy_url ⇒ Object
Returns the value of attribute proxy_url.
5 6 7 |
# File 'lib/patch_retention/configuration.rb', line 5 def proxy_url @proxy_url end |