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

Version Path
rider-kick-0.0.10 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.9 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.8 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.7 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.6 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.5 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.4 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.3 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt
rider-kick-0.0.2 lib/generators/rider_kick/templates/domains/core/use_cases/get_version.rb.tt