Exception: SafeToken::TokenExpired

Inherits:
InvalidToken show all
Defined in:
lib/vex/base/safe_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#expiresObject (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_sObject



20
21
22
# File 'lib/vex/base/safe_token.rb', line 20

def to_s
  "token expired at #{expires}"
end