Class: CycloneDX::CocoaPods::Source::LocalPod
- Inherits:
-
Object
- Object
- CycloneDX::CocoaPods::Source::LocalPod
- Defined in:
- lib/cyclonedx/cocoapods/source.rb,
lib/cyclonedx/cocoapods/bom_builder.rb,
lib/cyclonedx/cocoapods/pod_attributes.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #attributes_for(pod:) ⇒ Object
-
#initialize(path:) ⇒ LocalPod
constructor
A new instance of LocalPod.
- #source_qualifier ⇒ Object
Constructor Details
#initialize(path:) ⇒ LocalPod
Returns a new instance of LocalPod.
50 51 52 |
# File 'lib/cyclonedx/cocoapods/source.rb', line 50 def initialize(path:) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
48 49 50 |
# File 'lib/cyclonedx/cocoapods/source.rb', line 48 def path @path end |
Instance Method Details
#attributes_for(pod:) ⇒ Object
71 72 73 |
# File 'lib/cyclonedx/cocoapods/pod_attributes.rb', line 71 def attributes_for(pod:) ::Pod::Config.instance.sandbox.specification(pod.name).attributes_hash end |
#source_qualifier ⇒ Object
46 47 48 |
# File 'lib/cyclonedx/cocoapods/bom_builder.rb', line 46 def source_qualifier { file_name: @path } end |