Exception: JWT::Authenticator::Error
- Inherits:
-
StandardError
- Object
- StandardError
- JWT::Authenticator::Error
- Defined in:
- lib/jwt-authenticator.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message: nil, type:) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message: nil, type:) ⇒ Error
Returns a new instance of Error.
78 79 80 81 |
# File 'lib/jwt-authenticator.rb', line 78 def initialize(message: nil, type:) super .presence || type.to_s.humanize @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
76 77 78 |
# File 'lib/jwt-authenticator.rb', line 76 def type @type end |