Exception: SafeToken::TokenExpired
- Inherits:
-
InvalidToken
- Object
- RuntimeError
- InvalidToken
- SafeToken::TokenExpired
- Defined in:
- lib/vex/base/safe_token.rb
Instance Attribute Summary collapse
-
#expires ⇒ Object
readonly
Returns the value of attribute expires.
Instance Method Summary collapse
-
#initialize(expires) ⇒ TokenExpired
constructor
A new instance of TokenExpired.
- #to_s ⇒ Object
Constructor Details
#initialize(expires) ⇒ TokenExpired
Returns a new instance of TokenExpired.
16 17 18 |
# File 'lib/vex/base/safe_token.rb', line 16 def initialize(expires) @expires = expires end |
Instance Attribute Details
#expires ⇒ Object (readonly)
Returns the value of attribute expires.
15 16 17 |
# File 'lib/vex/base/safe_token.rb', line 15 def expires @expires end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/vex/base/safe_token.rb', line 20 def to_s "token expired at #{expires}" end |