Class: DashOverlord::UseCases::V1::Clients::Create::ValidateClient

Inherits:
Base
  • Object
show all
Defined in:
lib/dash_overlord/use_cases/v1/clients/create/validate_client.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



12
13
14
15
16
17
18
# File 'lib/dash_overlord/use_cases/v1/clients/create/validate_client.rb', line 12

def perform
  return if target_valid?

  failure! \
    :unprocessable_entity,
    I18n.t('v1.clients.contains_errors')
end