Class: Checkoff::Internal::SearchUrl::CustomFieldVariant::AnyValue

Inherits:
CustomFieldVariant show all
Defined in:
lib/checkoff/internal/search_url/custom_field_variant.rb,
sig/checkoff.rbs

Overview

custom_field_#CustomFieldVariant#gid.variant = 'any_value'

Not used for multi-select fields

Instance Attribute Summary

Attributes inherited from CustomFieldVariant

#gid, #remaining_params

Instance Method Summary collapse

Methods inherited from CustomFieldVariant

#ensure_no_remaining_params!, #fetch_solo_param, #initialize

Constructor Details

This class inherits a constructor from Checkoff::Internal::SearchUrl::CustomFieldVariant::CustomFieldVariant

Instance Method Details

#convertArray(Hash{String => String}, Array<Array<String>, String, Array>)

Returns:

  • (Array(Hash{String => String}, Array<Array<String>, String, Array>))


169
170
171
172
173
174
175
# File 'lib/checkoff/internal/search_url/custom_field_variant.rb', line 169

def convert
  ensure_no_remaining_params!

  api_params = { "custom_fields.#{gid}.is_set" => 'true' }
  task_selector = []
  [api_params, task_selector]
end