Class: AppMap::Hook::Package

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#excludeObject

Returns the value of attribute exclude

Returns:

  • the current value of exclude



9
10
11
# File 'lib/appmap/hook.rb', line 9

def exclude
  @exclude
end

#pathObject

Returns the value of attribute path

Returns:

  • the current value of path



9
10
11
# File 'lib/appmap/hook.rb', line 9

def path
  @path
end

Instance Method Details

#to_hObject



10
11
12
13
14
15
# File 'lib/appmap/hook.rb', line 10

def to_h
  {
    path: path,
    exclude: exclude.blank? ? nil : exclude
  }.compact
end