Class: IMW::Metadata::Schema
- Inherits:
-
Hash
- Object
- Hash
- IMW::Metadata::Schema
- 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
-
#initialize(obj = nil) ⇒ Schema
constructor
A new instance of Schema.
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 |