Sha256: ddbd9ba27c178662b63e35324c137ce31a7ca424e452b6c2a7ed3eb58007641e

Contents?: true

Size: 563 Bytes

Versions: 8

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Examples
    module Standard
      module RequestParams
        module Services
          class ApplyDefaultParamValues
            include ConvenientService::Standard::Config

            attr_reader :params, :defaults

            def initialize(params:, defaults:)
              @params = params
              @defaults = defaults
            end

            def result
              success(params: defaults.merge(params))
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb
convenient_service-0.11.0 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb
convenient_service-0.10.1 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb
convenient_service-0.10.0 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb
convenient_service-0.9.0 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb
convenient_service-0.8.0 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb
convenient_service-0.7.0 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb
convenient_service-0.6.0 lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb