class Scim::Kit::V2::Supportable

Represents a Feature

Attributes

supported[RW]

Public Class Methods

from(hash) click to toggle source
# File lib/scim/kit/v2/supportable.rb, line 22
def from(hash)
  x = new(*hash.keys)
  hash.each do |key, value|
    x.public_send("#{key}=", value)
  end
  x
end
new(*dynamic_attributes) click to toggle source
# File lib/scim/kit/v2/supportable.rb, line 13
def initialize(*dynamic_attributes)
  dynamic_attributes.delete(:supported)
  @dynamic_attributes = Hash[
    dynamic_attributes.map { |x| ["#{x}=".to_sym, nil] }
  ]
  @supported = false
end