Class: AppMap::Config::Package
- Inherits:
-
Struct
- Object
- Struct
- AppMap::Config::Package
- Defined in:
- lib/appmap/config.rb
Instance Attribute Summary collapse
-
#exclude ⇒ Object
Returns the value of attribute exclude.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#package_name ⇒ Object
Returns the value of attribute package_name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, package_name: nil, exclude: [], labels: []) ⇒ Package
constructor
A new instance of Package.
- #to_h ⇒ Object
Constructor Details
#initialize(path, package_name: nil, exclude: [], labels: []) ⇒ Package
Returns a new instance of Package.
6 7 8 |
# File 'lib/appmap/config.rb', line 6 def initialize(path, package_name: nil, exclude: [], labels: []) super path, package_name, exclude, labels end |
Instance Attribute Details
#exclude ⇒ Object
Returns the value of attribute exclude
5 6 7 |
# File 'lib/appmap/config.rb', line 5 def exclude @exclude end |
#labels ⇒ Object
Returns the value of attribute labels
5 6 7 |
# File 'lib/appmap/config.rb', line 5 def labels @labels end |
#package_name ⇒ Object
Returns the value of attribute package_name
5 6 7 |
# File 'lib/appmap/config.rb', line 5 def package_name @package_name end |
#path ⇒ Object
Returns the value of attribute path
5 6 7 |
# File 'lib/appmap/config.rb', line 5 def path @path end |
Instance Method Details
#to_h ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/appmap/config.rb', line 10 def to_h { path: path, package_name: package_name, exclude: exclude.blank? ? nil : exclude, labels: labels.blank? ? nil : labels }.compact end |