Module: AUPSTestKit::BasicTestAttesterResource

Included in:
BasicTestAttesterModule
Defined in:
lib/au_ps_inferno/utils/attester/basic_test_attester_resource.rb

Overview

Resolves Composition attester.party reference from the scratch bundle and loads attester metadata.

Instance Method Summary collapse

Instance Method Details

#attester_party_resourceObject



8
9
10
11
12
13
14
15
16
# File 'lib/au_ps_inferno/utils/attester/basic_test_attester_resource.rb', line 8

def attester_party_resource
  return nil unless scratch_bundle.present?

  bundle_resource = BundleDecorator.new(scratch_bundle)
  ref_str = attester_party_ref_from_bundle(bundle_resource)
  return nil if ref_str.blank?

  bundle_resource.resource_by_reference(ref_str)
end