class GdsApi::PublishingApi
def merge_optional_keys(params, options, optional_keys)
def merge_optional_keys(params, options, optional_keys) optional_keys.each_with_object(params) do |optional_key, hash| hash.merge!(optional_key => options[optional_key]) if options[optional_key] end end