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



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

def name
  @name
end

Instance Method Details

#to_hObject



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

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

#typeObject



25
26
27
# File 'lib/appmap/class_map.rb', line 25

def type
  "package"
end