Class: AppMap::ClassMap::Types::Package
- Inherits:
-
Struct
- Object
- Struct
- AppMap::ClassMap::Types::Package
- Includes:
- HasChildren
- Defined in:
- lib/appmap/class_map.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods included from HasChildren
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/appmap/class_map.rb', line 20 def name @name end |
Instance Method Details
#to_h ⇒ Object
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 |
#type ⇒ Object
23 24 25 |
# File 'lib/appmap/class_map.rb', line 23 def type 'package' end |