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
22 23 24 |
# File 'lib/appmap/class_map.rb', line 22 def name @name end |
Instance Method Details
#to_h ⇒ Object
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 |
#type ⇒ Object
25 26 27 |
# File 'lib/appmap/class_map.rb', line 25 def type 'package' end |