class KayakoClient::CustomField

Constants

GROUP_KNOWLEDGEBASE
GROUP_LIVECHAT_POST
GROUP_LIVECHAT_PRE
GROUP_NEWS
GROUP_STAFF_TICKET
GROUP_STAFF_USER_TICKET
GROUP_TIME_TRACK
GROUP_TROUBLESHOOTER
GROUP_USER
GROUP_USER_ORGANIZATION
GROUP_USER_TICKET
TYPE_CHECKBOX
TYPE_CUSTOM
TYPE_DATE
TYPE_FILE
TYPE_LINKED_SELECT
TYPE_MULTI_SELECT
TYPE_PASSWORD
TYPE_RADIO
TYPE_SELECT
TYPE_TEXT
TYPE_TEXT_AREA

Public Instance Methods

options() click to toggle source
# File lib/kayako_client/custom_field.rb, line 83
def options
    if instance_variable_defined?(:@options)
        instance_variable_get(:@options)
    elsif !new? && custom_field_id && custom_field_id > 0
        options = KayakoClient::CustomFieldOption.all(custom_field_id, inherited_options)
        if options && !options.empty?
            instance_variable_set(:@options, options)
        else
            instance_variable_set(:@options, nil)
        end
    else
        nil
    end
end