Sha256: a1be413e5e3ee6b99a545b7b67567a520a432a878e49b931502be7e0e6a61b9e
Contents?: true
Size: 589 Bytes
Versions: 12
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true module Scim module Kit module V2 # Represents an Unknown/Unrecognized Attribute class UnknownAttribute include ::ActiveModel::Validations validate :unknown attr_reader :name def initialize(name) @name = name end def _assign(*_args) valid? end def _value=(*_args) raise Scim::Kit::UnknownAttributeError, name end def unknown errors.add(name, I18n.t('errors.messages.invalid')) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems