Sha256: d832d0c33ab81c728e6394eb2fdd68ff9645c2430c7f738e7c7ff7d4f0d991e5

Contents?: true

Size: 716 Bytes

Versions: 11

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

module Scim
  module Kit
    module V2
      # Represents a Feature
      class Supportable
        include Templatable
        include DynamicAttributes

        attr_accessor :supported

        def initialize(*dynamic_attributes)
          dynamic_attributes.delete(:supported)
          @dynamic_attributes = Hash[
            dynamic_attributes.map { |x| ["#{x}=".to_sym, nil] }
          ]
          @supported = false
        end

        class << self
          def from(hash)
            x = new(*hash.keys)
            hash.each do |key, value|
              x.public_send("#{key}=", value)
            end
            x
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
scim-kit-0.7.1 lib/scim/kit/v2/supportable.rb
scim-kit-0.7.0 lib/scim/kit/v2/supportable.rb
scim-kit-0.6.0 lib/scim/kit/v2/supportable.rb
scim-kit-0.5.3 lib/scim/kit/v2/supportable.rb
scim-kit-0.5.2 lib/scim/kit/v2/supportable.rb
scim-kit-0.5.1 lib/scim/kit/v2/supportable.rb
scim-kit-0.5.0 lib/scim/kit/v2/supportable.rb
scim-kit-0.4.0 lib/scim/kit/v2/supportable.rb
scim-kit-0.3.2 lib/scim/kit/v2/supportable.rb
scim-kit-0.3.1 lib/scim/kit/v2/supportable.rb
scim-kit-0.3.0 lib/scim/kit/v2/supportable.rb