Class: AppMap::ClassMap::Types::Function
- Inherits:
-
Struct
- Object
- Struct
- AppMap::ClassMap::Types::Function
- Defined in:
- lib/appmap/class_map.rb
Instance Attribute Summary collapse
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#static ⇒ Object
Returns the value of attribute static.
Instance Method Summary collapse
Instance Attribute Details
#labels ⇒ Object
Returns the value of attribute labels.
51 52 53 |
# File 'lib/appmap/class_map.rb', line 51 def labels @labels end |
#location ⇒ Object
Returns the value of attribute location.
51 52 53 |
# File 'lib/appmap/class_map.rb', line 51 def location @location end |
#name ⇒ Object
Returns the value of attribute name
50 51 52 |
# File 'lib/appmap/class_map.rb', line 50 def name @name end |
#static ⇒ Object
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_h ⇒ Object
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 |
#type ⇒ Object
53 54 55 |
# File 'lib/appmap/class_map.rb', line 53 def type 'function' end |