Exception: Crufty::CodeExpired

Inherits:
StandardError
  • Object
show all
Defined in:
lib/crufty/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_byObject (readonly)

Returns the value of attribute best_by.



3
4
5
# File 'lib/crufty/exceptions.rb', line 3

def best_by
  @best_by
end

#expiresObject (readonly)

Returns the value of attribute expires.



3
4
5
# File 'lib/crufty/exceptions.rb', line 3

def expires
  @expires
end