Sha256: 4c40a22967a0f593855257c30c00a055e5ff7af236412380dacdc0509008e52b

Contents?: true

Size: 277 Bytes

Versions: 6

Compression:

Stored size: 277 Bytes

Contents

module Access
  class Organization

    def initialize(values)
      self.class.class_eval {attr_reader *values.keys }
      values.each do |attribute_name, attribute_value|
        self.instance_variable_set("@#{attribute_name}", attribute_value)
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
access-2.0.50 lib/access/organization.rb
access-2.0.49 lib/access/organization.rb
access-2.0.48 lib/access/organization.rb
access-2.0.47 lib/access/organization.rb
access-2.0.46 lib/access/organization.rb
access-2.0.44 lib/access/organization.rb