Class: Togglefy::InvalidFeatureAttribute

Inherits:
Error
  • Object
show all
Defined in:
lib/togglefy/errors/invalid_feature_attribute.rb

Overview

The InvalidFeatureAttribute class represents an error raised when an invalid attribute is provided for a Togglefy::Feature.

Instance Method Summary collapse

Constructor Details

#initialize(attr) ⇒ InvalidFeatureAttribute

Initializes a new InvalidFeatureAttribute error.

Parameters:

  • attr (String)

    The name of the invalid attribute.



10
11
12
# File 'lib/togglefy/errors/invalid_feature_attribute.rb', line 10

def initialize(attr)
  super("The attribute '#{attr}' is not valid for Togglefy::Feature.")
end