Sha256: 6ca59cc5fcdae1249118c6f55dce54e7a7b8f85bbd958871324ea44296a78589
Contents?: true
Size: 548 Bytes
Versions: 34
Compression:
Stored size: 548 Bytes
Contents
module SamlIdp module Attributeable extend ActiveSupport::Concern def initialize(attributes = {}) self.attributes = attributes end def attributes @attributes ||= {}.with_indifferent_access end def attributes=(new_attributes) @attributes = (new_attributes || {}).with_indifferent_access end module ClassMethods def attribute(att) define_method(att) { attributes[att] } define_method("#{att}=") { |new_value| self.attributes[att] = new_value } end end end end
Version data entries
34 entries across 34 versions & 2 rubygems