Class: Projects::Model::Customfield

Inherits:
Object
  • Object
show all
Defined in:
lib/projects/model/Customfield.rb

Overview

  • Customfield is used to make an object for projects custom field.

Instance Method Summary collapse

Instance Method Details

#getColumnNameObject

  • Get the column name of the custom field.

Returns

Returns the column name.



62
63
64
65
66
# File 'lib/projects/model/Customfield.rb', line 62

def getColumnName
    
  return @columnName
      
end

#getDefaultValueObject

  • Get the default value of the custom field.

Returns

  • Returns the default value.



86
87
88
89
90
# File 'lib/projects/model/Customfield.rb', line 86

def getDefaultValue
      
  return @defaultValue
      
end

#getLabelNameObject

  • Get the label name of the custom field.

Returns

  • Returns the label name.



38
39
40
41
42
# File 'lib/projects/model/Customfield.rb', line 38

def getLabelName
      
  return @labelName
      
end

#getPicklistValuesObject

  • Get the picklist values of the custom field.

Returns

  • Returns the picklist values



110
111
112
113
114
# File 'lib/projects/model/Customfield.rb', line 110

def getPicklistValues
    
  return @picklistValues
      
end

#setColumnName(columnName) ⇒ Object

  • Set the column name of the custom field.

Parameters

  • columnName
    • Column name of the custom field.



50
51
52
53
54
# File 'lib/projects/model/Customfield.rb', line 50

def setColumnName(columnName)
    
  @columnName = columnName
    
end

#setDefaultValue(defaultValue) ⇒ Object

  • Set the default value of the custom field.

Parameters

  • defaultValue
    • Default value of the custom field.



74
75
76
77
78
# File 'lib/projects/model/Customfield.rb', line 74

def setDefaultValue(defaultValue)
    
  @defaultValue = defaultValue
      
end

#setLabelName(labelName) ⇒ Object

  • Set the label name of the custom field.

Parameters

  • labelName
    • Label name of the custom field.



26
27
28
29
30
# File 'lib/projects/model/Customfield.rb', line 26

def setLabelName(labelName)
    
  @labelName = labelName
      
end

#setPicklistValues(picklistValues) ⇒ Object

  • Set the picklist values of the custom field.

Parameters

  • picklistValues
    • Picklist values of the custom field.



98
99
100
101
102
# File 'lib/projects/model/Customfield.rb', line 98

def setPicklistValues(picklistValues)
    
  @picklistValues = picklistValues
      
end