Sha256: 6da73a1d89b405074dc9e85a24852943efcd7bcc861fd7700a5dbdccf58bbb31

Contents?: true

Size: 700 Bytes

Versions: 4

Compression:

Stored size: 700 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Examples
    module Standard
      module V1
        class RequestParams
          module Services
            class MergeParams
              include ConvenientService::Standard::V1::Config

              attr_reader :params_from_path, :params_from_body

              def initialize(params_from_path:, params_from_body:)
                @params_from_path = params_from_path
                @params_from_body = params_from_body
              end

              def result
                success(params: params_from_path.merge(params_from_body))
              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/merge_params.rb
convenient_service-0.16.0 lib/convenient_service/examples/standard/v1/request_params/services/merge_params.rb
convenient_service-0.15.0 lib/convenient_service/examples/standard/v1/request_params/services/merge_params.rb
convenient_service-0.14.0 lib/convenient_service/examples/standard/v1/request_params/services/merge_params.rb