Class: USCoreTestKit::USCoreV800::SmartGranularScopesGroup

Inherits:
BaseSmartGranularScopesGroup show all
Defined in:
lib/us_core_test_kit/custom_groups/v8.0.0/smart_granular_scopes_group.rb

Constant Summary

Constants included from SmartScopesConstants

SmartScopesConstants::DEFAULT_SCOPES, SmartScopesConstants::SMART_GRANULAR_SCOPES_GROUP1, SmartScopesConstants::SMART_GRANULAR_SCOPES_GROUP2, SmartScopesConstants::SMART_GRANULAR_SCOPE_RESOURCES, SmartScopesConstants::SMART_V1_RESOURCE_LEVEL_SCOPES, SmartScopesConstants::SMART_V2_2_RESOURCE_LEVEL_SCOPES, SmartScopesConstants::SMART_V2_RESOURCE_LEVEL_SCOPES

Class Method Summary collapse

Class Method Details

.scopes_string(scopes) ⇒ Object



20
21
22
23
24
25
# File 'lib/us_core_test_kit/custom_groups/v8.0.0/smart_granular_scopes_group.rb', line 20

def self.scopes_string(scopes)
  scopes
    .map { |scope| scope.delete_prefix 'patient/' }
    .map { |scope| "* `#{scope}`" }
    .join("\n")
end