Exception: Crufty::CodeExpired
- Inherits:
-
StandardError
- Object
- StandardError
- Crufty::CodeExpired
- Defined in:
- lib/crufty/exceptions.rb
Instance Attribute Summary collapse
-
#best_by ⇒ Object
readonly
Returns the value of attribute best_by.
-
#expires ⇒ Object
readonly
Returns the value of attribute expires.
Instance Method Summary collapse
-
#initialize(context) ⇒ CodeExpired
constructor
A new instance of CodeExpired.
Constructor Details
#initialize(context) ⇒ CodeExpired
Returns a new instance of CodeExpired.
5 6 7 8 9 10 |
# File 'lib/crufty/exceptions.rb', line 5 def initialize(context) @best_by = context.best_by @expires = context.expires set_backtrace(context.backtrace) end |
Instance Attribute Details
#best_by ⇒ Object (readonly)
Returns the value of attribute best_by.
3 4 5 |
# File 'lib/crufty/exceptions.rb', line 3 def best_by @best_by end |
#expires ⇒ Object (readonly)
Returns the value of attribute expires.
3 4 5 |
# File 'lib/crufty/exceptions.rb', line 3 def expires @expires end |