Class: Strict::Attributes::Configuration::UnknownAttributeError

Inherits:
Error
  • Object
show all
Defined in:
lib/strict/attributes/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_name:) ⇒ UnknownAttributeError

Returns a new instance of UnknownAttributeError.



14
15
16
17
18
# File 'lib/strict/attributes/configuration.rb', line 14

def initialize(attribute_name:)
  super(message_from(attribute_name: attribute_name))

  @attribute_name = attribute_name
end

Instance Attribute Details

#attribute_nameObject (readonly)

Returns the value of attribute attribute_name.



12
13
14
# File 'lib/strict/attributes/configuration.rb', line 12

def attribute_name
  @attribute_name
end