Sha256: c44f34c66339b659cc09b903e4bb5ac96f1830dcdea7fa9630919cc78d77a31f
Contents?: true
Size: 656 Bytes
Versions: 4
Compression:
Stored size: 656 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Standard module V1 class RequestParams module Services class FilterOutUnpermittedParams include ConvenientService::Standard::V1::Config attr_reader :params, :permitted_keys def initialize(params:, permitted_keys:) @params = params @permitted_keys = permitted_keys end def result success(params: params.slice(*permitted_keys)) end end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems