Class: TagAuth::Configuration
- Inherits:
-
Object
- Object
- TagAuth::Configuration
- Defined in:
- lib/tag_auth/configuration.rb
Instance Attribute Summary collapse
-
#token_validity_duration ⇒ Object
Returns the value of attribute token_validity_duration.
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/tag_auth/configuration.rb', line 5 def initialize @token_validity_duration = 5.minutes end |
Instance Attribute Details
#token_validity_duration ⇒ Object
Returns the value of attribute token_validity_duration.
3 4 5 |
# File 'lib/tag_auth/configuration.rb', line 3 def token_validity_duration @token_validity_duration end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
9 10 11 |
# File 'lib/tag_auth/configuration.rb', line 9 def configure yield self if block_given? end |