Class: DashOverlord::UseCases::V1::Clients::Update::Base
- Defined in:
- lib/dash_overlord/use_cases/v1/clients/update/base.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
context_reader, #initialize, perform, target, #target_valid?
Constructor Details
This class inherits a constructor from DashOverlord::UseCases::Base
Instance Method Details
#final ⇒ Object
16 17 18 19 20 |
# File 'lib/dash_overlord/use_cases/v1/clients/update/base.rb', line 16 def final context.data = Serializers::V1::Clients::Update.to_hash \ context, status.ok? || status.unprocessable_entity? ? :client : false end |
#perform ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/dash_overlord/use_cases/v1/clients/update/base.rb', line 8 def perform invoke! Admins::FindCurrentAdmin invoke! Show::FindClient invoke! Create::AssignAttributesToClient invoke! Create::ValidateClient invoke! SaveClient end |