Class: 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.
| 53 54 55 | # File 'lib/appmap/class_map.rb', line 53 def labels @labels end | 
#location ⇒ Object
Returns the value of attribute location.
| 53 54 55 | # File 'lib/appmap/class_map.rb', line 53 def location @location end | 
#name ⇒ Object
Returns the value of attribute name
| 52 53 54 | # File 'lib/appmap/class_map.rb', line 52 def name @name end | 
#static ⇒ Object
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_h ⇒ Object
| 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 | 
#type ⇒ Object
| 55 56 57 | # File 'lib/appmap/class_map.rb', line 55 def type 'function' end |