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:

  • (Object)

    the current value of name



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

def name
  @name
end

Instance Method Details

#to_hObject



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

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

#typeObject



40
41
42
# File 'lib/appmap/class_map.rb', line 40

def type
  "class"
end