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

Inherits:
Struct
  • Object
show all
Defined in:
lib/appmap/class_map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#labelsObject

Returns the value of attribute labels.



51
52
53
# File 'lib/appmap/class_map.rb', line 51

def labels
  @labels
end

#locationObject

Returns the value of attribute location.



51
52
53
# File 'lib/appmap/class_map.rb', line 51

def location
  @location
end

#nameObject

Returns the value of attribute name



50
51
52
# File 'lib/appmap/class_map.rb', line 50

def name
  @name
end

#staticObject

Returns the value of attribute static.



51
52
53
# File 'lib/appmap/class_map.rb', line 51

def static
  @static
end

Instance Method Details

#to_hObject



57
58
59
60
61
62
63
64
65
# File 'lib/appmap/class_map.rb', line 57

def to_h
  {
    name: name,
    type: type,
    location: location,
    static: static,
    labels: labels
  }.delete_if { |_, v| v.nil? || v == [] }
end

#typeObject



53
54
55
# File 'lib/appmap/class_map.rb', line 53

def type
  'function'
end