Class: MendixBridge::Inventory::Element

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



5
6
7
# File 'lib/mendix_bridge/inventory.rb', line 5

def details
  @details
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



5
6
7
# File 'lib/mendix_bridge/inventory.rb', line 5

def label
  @label
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/mendix_bridge/inventory.rb', line 5

def path
  @path
end

#qualified_nameObject (readonly)

Returns the value of attribute qualified_name

Returns:

  • (Object)

    the current value of qualified_name



5
6
7
# File 'lib/mendix_bridge/inventory.rb', line 5

def qualified_name
  @qualified_name
end

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



5
6
7
# File 'lib/mendix_bridge/inventory.rb', line 5

def raw
  @raw
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/mendix_bridge/inventory.rb', line 5

def type
  @type
end

Instance Method Details

#module_nameObject



6
7
8
# File 'lib/mendix_bridge/inventory.rb', line 6

def module_name
  qualified_name&.split(".", 2)&.first
end

#to_hObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/mendix_bridge/inventory.rb', line 10

def to_h
  {
    label:,
    type:,
    qualified_name:,
    path:,
    raw:,
    details:
  }.compact
end