Module: Teamleader::CustomFields

Included in:
Api
Defined in:
lib/teamleader/api/custom_fields.rb

Instance Method Summary collapse

Instance Method Details

#add_custom_field_option(params = {}) ⇒ Object



13
14
15
16
# File 'lib/teamleader/api/custom_fields.rb', line 13

def add_custom_field_option(params={})
  required_params(%i[custom_field_id option_name], params)
  request '/addCustomFieldOption.php', params
end

#get_custom_field_info(params = {}) ⇒ Object



8
9
10
11
# File 'lib/teamleader/api/custom_fields.rb', line 8

def get_custom_field_info(params={})
  required_params(%i[custom_field_id], params)
  request '/getCustomFieldInfo.php', params
end

#get_custom_fields(params = {}) ⇒ Object



3
4
5
6
# File 'lib/teamleader/api/custom_fields.rb', line 3

def get_custom_fields(params={})
  required_params(%i[for], params)
  request '/getCustomFields.php', params
end