Class: Scim::Kit::V2::UnknownAttribute
- Inherits:
-
Object
- Object
- Scim::Kit::V2::UnknownAttribute
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/scim/kit/v2/unknown_attribute.rb
Overview
Represents an Unknown/Unrecognized Attribute
Instance Attribute Summary collapse
- #name ⇒ Object readonly
Instance Method Summary collapse
- #_assign(*_args) ⇒ Object
- #_value=(*_args) ⇒ Object
-
#initialize(name) ⇒ UnknownAttribute
constructor
A new instance of UnknownAttribute.
- #unknown ⇒ Object
Constructor Details
#initialize(name) ⇒ UnknownAttribute
Returns a new instance of UnknownAttribute.
12 13 14 |
# File 'lib/scim/kit/v2/unknown_attribute.rb', line 12 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
10 11 12 |
# File 'lib/scim/kit/v2/unknown_attribute.rb', line 10 def name @name end |
Instance Method Details
#_assign(*_args) ⇒ Object
16 17 18 |
# File 'lib/scim/kit/v2/unknown_attribute.rb', line 16 def _assign(*_args) valid? end |
#_value=(*_args) ⇒ Object
20 21 22 |
# File 'lib/scim/kit/v2/unknown_attribute.rb', line 20 def _value=(*_args) raise Scim::Kit::UnknownAttributeError, name end |
#unknown ⇒ Object
24 25 26 |
# File 'lib/scim/kit/v2/unknown_attribute.rb', line 24 def unknown errors.add(name, I18n.t('errors.messages.invalid')) end |