Sha256: a626e242f240754201d4d9f7c19cd080a57ea0430a2424ec690d9ee4a571a4e8
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true class Core::UseCases::<%= [@route_scope_class, @scope_class, @use_case_class].reject { |c| c.empty? }.join("::") %> < RiderKick::UseCases::AbstractUseCase contract do params(Core::UseCases::Contract::Default.new.call) do <% @contract_fetch_by_id.each do |field| -%> <%= field %> <% end -%> end end # Set specific return monads at method 'result' include Dry::Monads::Do.for(:result) def result params = yield build_parameter! Core::Repositories::<%= @scope_class%>::<%= @repository_class%>.new(id: params.id).call(builder: true) end end
Version data entries
2 entries across 2 versions & 1 rubygems