2021-07-13 15:08:38 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ServicePing
|
|
|
|
class PermitDataCategoriesService
|
2021-08-12 18:10:45 +00:00
|
|
|
STANDARD_CATEGORY = 'standard'
|
|
|
|
SUBSCRIPTION_CATEGORY = 'subscription'
|
|
|
|
OPERATIONAL_CATEGORY = 'operational'
|
|
|
|
OPTIONAL_CATEGORY = 'optional'
|
2021-07-13 15:08:38 +00:00
|
|
|
CATEGORIES = [
|
|
|
|
STANDARD_CATEGORY,
|
|
|
|
SUBSCRIPTION_CATEGORY,
|
|
|
|
OPERATIONAL_CATEGORY,
|
|
|
|
OPTIONAL_CATEGORY
|
|
|
|
].to_set.freeze
|
|
|
|
|
|
|
|
def execute
|
2021-07-23 09:08:49 +00:00
|
|
|
return [] unless ServicePingSettings.product_intelligence_enabled?
|
2021-07-13 15:08:38 +00:00
|
|
|
|
|
|
|
CATEGORIES
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
ServicePing::PermitDataCategoriesService.prepend_mod_with('ServicePing::PermitDataCategoriesService')
|