Class: KeytechKit::ClassDefinition
- Inherits:
-
Object
- Object
- KeytechKit::ClassDefinition
- Defined in:
- lib/keytechKit/classes/classdefinition.rb
Instance Attribute Summary collapse
-
#attributesList ⇒ Object
Returns the value of attribute attributesList.
-
#availableSubareas ⇒ Object
Returns the value of attribute availableSubareas.
-
#classKey ⇒ Object
Returns the value of attribute classKey.
-
#displayname ⇒ Object
Returns the value of attribute displayname.
-
#hasNumberGenerator ⇒ Object
Returns the value of attribute hasNumberGenerator.
-
#isActive ⇒ Object
Returns the value of attribute isActive.
-
#Listers ⇒ Object
Returns the value of attribute Listers.
Instance Method Summary collapse
-
#initialize(classData) ⇒ ClassDefinition
constructor
A new instance of ClassDefinition.
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. = loadSubAreas(classData["AvailableSubAreas"]) self.attributesList = classData["AttributesList"] self.hasNumberGenerator = classData["HasNumberGenerator"] self.isActive = classData["IsActive"] # TODO: Attributeslist parsing end |
Instance Attribute Details
#attributesList ⇒ Object
Returns the value of attribute attributesList.
7 8 9 |
# File 'lib/keytechKit/classes/classdefinition.rb', line 7 def attributesList @attributesList end |
#availableSubareas ⇒ Object
Returns the value of attribute availableSubareas.
9 10 11 |
# File 'lib/keytechKit/classes/classdefinition.rb', line 9 def @availableSubareas end |
#classKey ⇒ Object
Returns the value of attribute classKey.
6 7 8 |
# File 'lib/keytechKit/classes/classdefinition.rb', line 6 def classKey @classKey end |
#displayname ⇒ Object
Returns the value of attribute displayname.
8 9 10 |
# File 'lib/keytechKit/classes/classdefinition.rb', line 8 def displayname @displayname end |
#hasNumberGenerator ⇒ Object
Returns the value of attribute hasNumberGenerator.
10 11 12 |
# File 'lib/keytechKit/classes/classdefinition.rb', line 10 def hasNumberGenerator @hasNumberGenerator end |
#isActive ⇒ Object
Returns the value of attribute isActive.
11 12 13 |
# File 'lib/keytechKit/classes/classdefinition.rb', line 11 def isActive @isActive end |
#Listers ⇒ Object
Returns the value of attribute Listers.
12 13 14 |
# File 'lib/keytechKit/classes/classdefinition.rb', line 12 def Listers @Listers end |