Class: MendixBridge::Model::AppModule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entitiesObject (readonly)

Returns the value of attribute entities

Returns:

  • (Object)

    the current value of entities



164
165
166
# File 'lib/mendix_bridge/model.rb', line 164

def entities
  @entities
end

#enumerationsObject (readonly)

Returns the value of attribute enumerations

Returns:

  • (Object)

    the current value of enumerations



164
165
166
# File 'lib/mendix_bridge/model.rb', line 164

def enumerations
  @enumerations
end

#microflowsObject (readonly)

Returns the value of attribute microflows

Returns:

  • (Object)

    the current value of microflows



164
165
166
# File 'lib/mendix_bridge/model.rb', line 164

def microflows
  @microflows
end

#module_rolesObject (readonly)

Returns the value of attribute module_roles

Returns:

  • (Object)

    the current value of module_roles



164
165
166
# File 'lib/mendix_bridge/model.rb', line 164

def module_roles
  @module_roles
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



164
165
166
# File 'lib/mendix_bridge/model.rb', line 164

def name
  @name
end

#pagesObject (readonly)

Returns the value of attribute pages

Returns:

  • (Object)

    the current value of pages



164
165
166
# File 'lib/mendix_bridge/model.rb', line 164

def pages
  @pages
end

Instance Method Details

#to_hObject



172
173
174
175
176
177
178
179
180
181
# File 'lib/mendix_bridge/model.rb', line 172

def to_h
  {
    name:,
    entities: entities.map(&:to_h),
    enumerations: enumerations.map(&:to_h),
    microflows: microflows.map(&:to_h),
    pages: pages.map(&:to_h),
    module_roles: module_roles.map(&:to_h)
  }
end