Class: MendixBridge::SecurityParser

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

Class Method Summary collapse

Class Method Details

.parse(type, description) ⇒ Object



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

def parse(type, description)
  case type
  when "projectsecurity" then parse_project_security(description)
  when "modulerole" then parse_module_role(description)
  when "userrole" then parse_user_role(description)
  else raise ArgumentError, "unsupported security element: #{type}"
  end
end