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.



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

def labels
  @labels
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#staticObject

Returns the value of attribute static.



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

def static
  @static
end

Instance Method Details

#to_hObject



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

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

#typeObject



55
56
57
# File 'lib/appmap/class_map.rb', line 55

def type
  "function"
end