Class: UseParagon::Configuration
- Inherits:
-
Object
- Object
- UseParagon::Configuration
- Defined in:
- lib/use_paragon/configuration.rb
Overview
Allows configuration using an initializer
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#logger_enabled ⇒ Object
Returns the value of attribute logger_enabled.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/use_paragon/configuration.rb', line 8 def initialize @base_url = "https://zeus.useparagon.com" @logger = Logger.new(STDOUT) @logger_enabled = true end |
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
6 7 8 |
# File 'lib/use_paragon/configuration.rb', line 6 def base_url @base_url end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/use_paragon/configuration.rb', line 6 def logger @logger end |
#logger_enabled ⇒ Object
Returns the value of attribute logger_enabled.
6 7 8 |
# File 'lib/use_paragon/configuration.rb', line 6 def logger_enabled @logger_enabled end |
#private_key ⇒ Object
Returns the value of attribute private_key.
6 7 8 |
# File 'lib/use_paragon/configuration.rb', line 6 def private_key @private_key end |
#project_id ⇒ Object
Returns the value of attribute project_id.
6 7 8 |
# File 'lib/use_paragon/configuration.rb', line 6 def project_id @project_id end |