Class: Funneler::Configuration
- Inherits:
-
Object
- Object
- Funneler::Configuration
- Defined in:
- lib/funneler/configuration.rb
Instance Attribute Summary collapse
-
#expires_in_days ⇒ Object
Returns the value of attribute expires_in_days.
-
#jwt_algorithm ⇒ Object
Returns the value of attribute jwt_algorithm.
-
#jwt_key ⇒ Object
Returns the value of attribute jwt_key.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/funneler/configuration.rb', line 7 def initialize( = {}) @jwt_key = [:jwt_key] @jwt_algorithm = [:jwt_algorithm] @expires_in_days = .fetch(:expires_in_days, 14) end |
Instance Attribute Details
#expires_in_days ⇒ Object
Returns the value of attribute expires_in_days.
3 4 5 |
# File 'lib/funneler/configuration.rb', line 3 def expires_in_days @expires_in_days end |
#jwt_algorithm ⇒ Object
Returns the value of attribute jwt_algorithm.
3 4 5 |
# File 'lib/funneler/configuration.rb', line 3 def jwt_algorithm @jwt_algorithm end |
#jwt_key ⇒ Object
Returns the value of attribute jwt_key.
3 4 5 |
# File 'lib/funneler/configuration.rb', line 3 def jwt_key @jwt_key end |