Class: AppMap::Package

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, package_name, exclude, labels = nil) ⇒ Package

Returns a new instance of Package.



5
6
7
# File 'lib/appmap/config.rb', line 5

def initialize(path, package_name, exclude, labels = nil)
  super
end

Instance Attribute Details

#excludeObject

Returns the value of attribute exclude

Returns:

  • (Object)

    the current value of exclude



4
5
6
# File 'lib/appmap/config.rb', line 4

def exclude
  @exclude
end

#labelsObject

Returns the value of attribute labels

Returns:

  • (Object)

    the current value of labels



4
5
6
# File 'lib/appmap/config.rb', line 4

def labels
  @labels
end

#package_nameObject

Returns the value of attribute package_name

Returns:

  • (Object)

    the current value of package_name



4
5
6
# File 'lib/appmap/config.rb', line 4

def package_name
  @package_name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



4
5
6
# File 'lib/appmap/config.rb', line 4

def path
  @path
end

Instance Method Details

#to_hObject



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

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