Class: AppMap::Package
- Inherits:
-
Struct
- Object
- Struct
- AppMap::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, exclude, labels = nil) ⇒ Package
constructor
A new instance of Package.
- #to_h ⇒ Object
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
#exclude ⇒ Object
Returns the value of attribute exclude
4 5 6 |
# File 'lib/appmap/config.rb', line 4 def exclude @exclude end |
#labels ⇒ Object
Returns the value of attribute labels
4 5 6 |
# File 'lib/appmap/config.rb', line 4 def labels @labels end |
#package_name ⇒ Object
Returns the value of attribute package_name
4 5 6 |
# File 'lib/appmap/config.rb', line 4 def package_name @package_name end |
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/appmap/config.rb', line 4 def path @path end |
Instance Method Details
#to_h ⇒ Object
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 |