Sha256: 41bb04a866e136ff0235c9aca4fe323527c9ff10ca49bee45d6990fc27ef2db2

Contents?: true

Size: 641 Bytes

Versions: 8

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Examples
    module Standard
      module 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

8 entries across 8 versions & 1 rubygems

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