Sha256: 40bc97a8a2f17a4bf112b616ee26d8588631850c19b53a8ef08713a8ddb67165

Contents?: true

Size: 640 Bytes

Versions: 5

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

5 entries across 5 versions & 1 rubygems

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