Sha256: 45be45f3a7b2f59aff2b6050a832c4334261684e341cefbf8a24fcdf65a17880

Contents?: true

Size: 307 Bytes

Versions: 8

Compression:

Stored size: 307 Bytes

Contents

require "json"

class PropertybaseId
  module Mappings
    extend self

    def objects
      @_objects ||= begin
        load_json_file("objects")
      end
    end

    private

    def load_json_file(name)
      JSON.parse(File.read(File.expand_path('../data/objects.json', __FILE__)))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
propertybase_id-0.6.0 lib/propertybase_id/mappings.rb
propertybase_id-0.5.0 lib/propertybase_id/mappings.rb
propertybase_id-0.4.0 lib/propertybase_id/mappings.rb
propertybase_id-0.3.3 lib/propertybase_id/mappings.rb
propertybase_id-0.3.2 lib/propertybase_id/mappings.rb
propertybase_id-0.3.1 lib/propertybase_id/mappings.rb
propertybase_id-0.3.0 lib/propertybase_id/mappings.rb
propertybase_id-0.2.0 lib/propertybase_id/mappings.rb