Sha256: c1c51b812eda58a1f58b989e740b4d18e49829922d8eebb6bb528a184a42151e
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
module Syncano class Schema class ResourceDefinition attr_accessor :attributes def initialize(raw_defitnition) @raw_definition = raw_defitnition self.attributes = raw_defitnition[:attributes].map do |name, raw_attribute_definition| AttributeDefinition.new name, raw_attribute_definition end end def [](key) @raw_definition[key] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
syncano-4.0.0.pre | lib/syncano/schema/resource_definition.rb |