Class: USCoreTestKit::USCoreV700::SmartGranularScopesGroup

Inherits:
BaseSmartGranularScopesGroup show all
Defined in:
lib/us_core_test_kit/custom_groups/v7.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

Class Method Summary collapse

Class Method Details

.scopes_string(scopes) ⇒ Object

[View source]

11
12
13
14
15
16
# File 'lib/us_core_test_kit/custom_groups/v7.0.0/smart_granular_scopes_group.rb', line 11

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