Class: Mkxms::Mssql::SchemaHandler

Inherits:
Object
  • Object
show all
Includes:
PropertyHandler::ElementHandler
Defined in:
lib/mkxms/mssql/schema_handler.rb

Instance Method Summary collapse

Methods included from PropertyHandler::ElementHandler

#handle_property_element

Constructor Details

#initialize(schemas, node) ⇒ SchemaHandler

Returns a new instance of SchemaHandler.



32
33
34
35
36
37
# File 'lib/mkxms/mssql/schema_handler.rb', line 32

def initialize(schemas, node)
  @schema = Schema.new(node.attributes['name'], owner: node.attributes['owner']).tap do |s|
    store_properties_on s
    schemas << s
  end
end