Class: EasyJwtAuth::Config
- Inherits:
-
Object
- Object
- EasyJwtAuth::Config
- Defined in:
- lib/easy_jwt_auth/config.rb
Class Attribute Summary collapse
-
.algo ⇒ Object
readonly
Returns the value of attribute algo.
-
.expiration ⇒ Object
readonly
Returns the value of attribute expiration.
-
.finder_method ⇒ Object
readonly
Returns the value of attribute finder_method.
-
.secret ⇒ Object
readonly
Returns the value of attribute secret.
Class Method Summary collapse
- .set_algo(algo) ⇒ Object
- .set_expiration(expiration) ⇒ Object
- .set_finder_method(finder_method) ⇒ Object
- .set_secret(secret) ⇒ Object
Class Attribute Details
.algo ⇒ Object (readonly)
Returns the value of attribute algo.
4 5 6 |
# File 'lib/easy_jwt_auth/config.rb', line 4 def algo @algo end |
.expiration ⇒ Object (readonly)
Returns the value of attribute expiration.
4 5 6 |
# File 'lib/easy_jwt_auth/config.rb', line 4 def expiration @expiration end |
.finder_method ⇒ Object (readonly)
Returns the value of attribute finder_method.
4 5 6 |
# File 'lib/easy_jwt_auth/config.rb', line 4 def finder_method @finder_method end |
.secret ⇒ Object (readonly)
Returns the value of attribute secret.
4 5 6 |
# File 'lib/easy_jwt_auth/config.rb', line 4 def secret @secret end |
Class Method Details
.set_algo(algo) ⇒ Object
6 7 8 |
# File 'lib/easy_jwt_auth/config.rb', line 6 def set_algo(algo) @algo = algo end |
.set_expiration(expiration) ⇒ Object
10 11 12 |
# File 'lib/easy_jwt_auth/config.rb', line 10 def set_expiration(expiration) @expiration = expiration end |
.set_finder_method(finder_method) ⇒ Object
14 15 16 17 18 |
# File 'lib/easy_jwt_auth/config.rb', line 14 def set_finder_method(finder_method) raise InvalidFinderMethod unless finder_method.respond_to?(:call) @finder_method = finder_method end |
.set_secret(secret) ⇒ Object
20 21 22 |
# File 'lib/easy_jwt_auth/config.rb', line 20 def set_secret(secret) @secret = secret end |