Class: CycloneDX::CocoaPods::Source::LocalPod

Inherits:
Object
  • Object
show all
Defined in:
lib/cyclonedx/cocoapods/source.rb,
lib/cyclonedx/cocoapods/bom_builder.rb,
lib/cyclonedx/cocoapods/pod_attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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_qualifierObject



46
47
48
# File 'lib/cyclonedx/cocoapods/bom_builder.rb', line 46

def source_qualifier
  { file_name: @path }
end