Class: Mkxms::Mssql::SynonymHandler

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

Instance Method Summary collapse

Methods included from PropertyHandler::ElementHandler

#handle_property_element

Constructor Details

#initialize(synonyms, node) ⇒ SynonymHandler

Returns a new instance of SynonymHandler.



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

def initialize(synonyms, node)
  a = node.attributes
  Synonym.new(a['schema'], a['name'], a['for']).tap do |syn|
    store_properties_on syn
    synonyms << (@synonym = syn)
  end
end