Exception: Shamu::Features::RetiredToggleError

Inherits:
Error
  • Object
show all
Defined in:
lib/shamu/features/errors.rb

Overview

An feature toggle was checked that has been marked as retired.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(toggle) ⇒ RetiredToggleError

Returns a new instance of RetiredToggleError.



22
23
24
25
26
# File 'lib/shamu/features/errors.rb', line 22

def initialize( toggle )
  @toggle = toggle

  super translate( :retired_toggle_checked, name: toggle.name, retire_at: toggle.retire_at.to_s )
end

Instance Attribute Details

#toggleToggle

Returns the retired toggle.

Returns:

  • (Toggle)

    the retired toggle



20
21
22
# File 'lib/shamu/features/errors.rb', line 20

def toggle
  @toggle
end