Class: IMW::Metadata::Schema

Inherits:
Hash
  • Object
show all
Defined in:
lib/imw/metadata/schema.rb

Overview

Represents a schema for data.

FIXME add methods that help couple nicely with Avro schemata.

Instance Method Summary collapse

Constructor Details

#initialize(obj = nil) ⇒ Schema

Returns a new instance of Schema.



10
11
12
13
# File 'lib/imw/metadata/schema.rb', line 10

def initialize obj=nil
  super()
  merge!(obj) if obj.is_a?(Hash) || obj.is_a?(Schema)
end