class Dynamicloud::API::Model::RecordFieldType

Indicates the different field's types in DynamiCloud @author Eleazar Gomez @version 1.0.0 @since 9/2/15

Constants

BIG_TEXT
CHECKBOX
DATE
NUMBER
PASSWORD
RADIO_BUTTON
SELECT
SELECT_MULTI_SELECTION
TEXT
TEXTAREA

Public Class Methods

get_field_type(type) click to toggle source

Gets the FieldType according type parameter @param type target @return RecordTypeField

# File lib/dynamic_model.rb, line 45
def self.get_field_type(type)
  case type
    when 1
      TEXT
    when 2
      CHECKBOX
    when 3
      RADIO_BUTTON
    when 4
      SELECT
    when 5
      SELECT_MULTI_SELECTION
    when 6
      TEXTAREA
    when 7
      BIG_TEXT
    when 8
      PASSWORD
    when 9
      DATE
    else
      NUMBER
  end
end
new(type) click to toggle source

Build the enum @param type type value

# File lib/dynamic_model.rb, line 27
def initialize(type)
  @type = type
end