Sha256: b993923d7eb188ef41b9990f75fa1c92cb1536608d68d03e3adeaa900de7f548
Contents?: true
Size: 448 Bytes
Versions: 9
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true class Core::UseCases::GetVersion < RiderKick::UseCases::AbstractUseCase contract do params do # required(:version).filled(:string) end end # Set specific return monads at method 'result' include Dry::Monads::Do.for(:result) def result params = yield build_parameter! response = { version: <%= Rails.application.class.module_parent_name %>::VERSION } Success response end end
Version data entries
9 entries across 9 versions & 1 rubygems