Sha256: 152a394eaac3b914e41131a3ca769af7fb2afc6f239752845db79170e3e3abaf

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Examples
    module Standard
      module V1
        class RequestParams
          module Services
            class ApplyDefaultParamValues
              include ConvenientService::Standard::V1::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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.17.0 lib/convenient_service/examples/standard/v1/request_params/services/apply_default_param_values.rb
convenient_service-0.16.0 lib/convenient_service/examples/standard/v1/request_params/services/apply_default_param_values.rb
convenient_service-0.15.0 lib/convenient_service/examples/standard/v1/request_params/services/apply_default_param_values.rb
convenient_service-0.14.0 lib/convenient_service/examples/standard/v1/request_params/services/apply_default_param_values.rb