Class: Morpho::Configurations::JWT
- Inherits:
-
Object
- Object
- Morpho::Configurations::JWT
- Defined in:
- lib/morpho/configurations/jwt.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#expiration_time ⇒ Object
Returns the value of attribute expiration_time.
-
#header ⇒ Object
Returns the value of attribute header.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
-
#initialize ⇒ JWT
constructor
A new instance of JWT.
Constructor Details
#initialize ⇒ JWT
Returns a new instance of JWT.
9 10 11 12 13 14 |
# File 'lib/morpho/configurations/jwt.rb', line 9 def initialize self.secret = '' self.algorithm = '' self.header = '' self.expiration_time = 0 end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
5 6 7 |
# File 'lib/morpho/configurations/jwt.rb', line 5 def algorithm @algorithm end |
#expiration_time ⇒ Object
Returns the value of attribute expiration_time.
7 8 9 |
# File 'lib/morpho/configurations/jwt.rb', line 7 def expiration_time @expiration_time end |
#header ⇒ Object
Returns the value of attribute header.
6 7 8 |
# File 'lib/morpho/configurations/jwt.rb', line 6 def header @header end |
#secret ⇒ Object
Returns the value of attribute secret.
4 5 6 |
# File 'lib/morpho/configurations/jwt.rb', line 4 def secret @secret end |