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

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:

  • the current value of name



35
36
37
# File 'lib/appmap/class_map.rb', line 35

def name
  @name
end

Instance Method Details

#to_hObject



42
43
44
45
46
47
48
# File 'lib/appmap/class_map.rb', line 42

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

#typeObject



38
39
40
# File 'lib/appmap/class_map.rb', line 38

def type
  'class'
end