Class: KeytechKit::ClassDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/keytechKit/classes/classdefinition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classData) ⇒ ClassDefinition

Returns a new instance of ClassDefinition.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/keytechKit/classes/classdefinition.rb', line 14

def initialize(classData)
  self.classKey = classData["ClassKey"]
  self.displayname = classData["Displayname"]
  self.attributesList = classData["AttributesList"]
  self.availableSubareas = loadSubAreas(classData["AvailableSubAreas"])
  self.attributesList = classData["AttributesList"]
  self.hasNumberGenerator = classData["HasNumberGenerator"]
  self.isActive = classData["IsActive"]
  
  # TODO: Attributeslist parsing

end

Instance Attribute Details

#attributesListObject

Returns the value of attribute attributesList.



7
8
9
# File 'lib/keytechKit/classes/classdefinition.rb', line 7

def attributesList
  @attributesList
end

#availableSubareasObject

Returns the value of attribute availableSubareas.



9
10
11
# File 'lib/keytechKit/classes/classdefinition.rb', line 9

def availableSubareas
  @availableSubareas
end

#classKeyObject

Returns the value of attribute classKey.



6
7
8
# File 'lib/keytechKit/classes/classdefinition.rb', line 6

def classKey
  @classKey
end

#displaynameObject

Returns the value of attribute displayname.



8
9
10
# File 'lib/keytechKit/classes/classdefinition.rb', line 8

def displayname
  @displayname
end

#hasNumberGeneratorObject

Returns the value of attribute hasNumberGenerator.



10
11
12
# File 'lib/keytechKit/classes/classdefinition.rb', line 10

def hasNumberGenerator
  @hasNumberGenerator
end

#isActiveObject

Returns the value of attribute isActive.



11
12
13
# File 'lib/keytechKit/classes/classdefinition.rb', line 11

def isActive
  @isActive
end

#ListersObject

Returns the value of attribute Listers.



12
13
14
# File 'lib/keytechKit/classes/classdefinition.rb', line 12

def Listers
  @Listers
end