Class: MendixBridge::DomainParser

Inherits:
Object
  • Object
show all
Defined in:
lib/mendix_bridge/domain_parser.rb

Class Method Summary collapse

Class Method Details

.parse(description) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/mendix_bridge/domain_parser.rb', line 6

def parse(description)
  case description.fetch("type")
  when "entity" then parse_entity(description)
  when "association" then parse_association(description)
  else { "mdl" => description["mdl"] }
  end
end