Class: Apiphobic::Errors::Expired
- Inherits:
-
Erratum::Errors::InvalidToken
- Object
- Erratum::Errors::InvalidToken
- Apiphobic::Errors::Expired
- Defined in:
- lib/apiphobic/errors/expired.rb
Instance Attribute Summary collapse
-
#expired_at ⇒ Object
Returns the value of attribute expired_at.
Instance Method Summary collapse
Instance Attribute Details
#expired_at ⇒ Object
Returns the value of attribute expired_at.
8 9 10 |
# File 'lib/apiphobic/errors/expired.rb', line 8 def expired_at @expired_at end |
Instance Method Details
#detail ⇒ Object
14 15 16 17 18 |
# File 'lib/apiphobic/errors/expired.rb', line 14 def detail <<~HEREDOC.chomp.tr("\n", ' ') This token has already expired. It expired on '#{expired_at.iso8601}'. HEREDOC end |
#source ⇒ Object
20 21 22 23 24 |
# File 'lib/apiphobic/errors/expired.rb', line 20 def source { 'expired_at' => expired_at.iso8601, } end |
#title ⇒ Object
10 11 12 |
# File 'lib/apiphobic/errors/expired.rb', line 10 def title 'Token Is Expired' end |