Class: DashOverlord::UseCases::V1::ChartConfigs::Show::FindChartConfig

Inherits:
Base
  • Object
show all
Defined in:
lib/dash_overlord/use_cases/v1/chart_configs/show/find_chart_config.rb

Constant Summary

Constants inherited from Base

Base::AbortError

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods inherited from Base

context_reader, #final, #initialize, perform, target, #target_valid?

Constructor Details

This class inherits a constructor from DashOverlord::UseCases::Base

Instance Method Details

#performObject



8
9
10
11
12
13
14
# File 'lib/dash_overlord/use_cases/v1/chart_configs/show/find_chart_config.rb', line 8

def perform
  invoke! GetChartConfig

  return if context.chart_config.present?

  failure!(:not_found, I18n.t('v1.chart_configs.not_found'))
end