Class: AppMap::ClassMap::Types::Package

Inherits:
Struct
  • Object
show all
Includes:
HasChildren
Defined in:
lib/appmap/class_map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasChildren

included

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/appmap/class_map.rb', line 20

def name
  @name
end

Instance Method Details

#to_hObject



27
28
29
30
31
32
33
# File 'lib/appmap/class_map.rb', line 27

def to_h
  {
    name: name,
    type: type,
    children: children.map(&:to_h)
  }
end

#typeObject



23
24
25
# File 'lib/appmap/class_map.rb', line 23

def type
  'package'
end