Sha256: 5b9cf7193c88bcda94c9d1e255924f39a2084a08c6104097e86562f2e79a9ffe

Contents?: true

Size: 345 Bytes

Versions: 23

Compression:

Stored size: 345 Bytes

Contents

module Access
  class Info

    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
      @geolocation = Access::Geolocation.new(@geolocation) if @geolocation
    end

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
access-2.0.50 lib/access/info.rb
access-2.0.49 lib/access/info.rb
access-2.0.48 lib/access/info.rb
access-2.0.47 lib/access/info.rb
access-2.0.46 lib/access/info.rb
access-2.0.44 lib/access/info.rb
access-2.0.43 lib/access/info.rb
access-2.0.42 lib/access/info.rb
access-2.0.41 lib/access/info.rb
access-2.0.40 lib/access/info.rb
access-2.0.39 lib/access/info.rb
access-2.0.38 lib/access/info.rb
access-2.0.37 lib/access/info.rb
access-2.0.36 lib/access/info.rb
access-2.0.34 lib/access/info.rb
access-2.0.33 lib/access/info.rb
access-2.0.32 lib/access/info.rb
access-2.0.31 lib/access/info.rb
access-2.0.30 lib/access/info.rb
access-2.0.29 lib/access/info.rb