Class: MOLGENIS::ModuleModel
- Inherits:
-
Object
- Object
- MOLGENIS::ModuleModel
- Defined in:
- lib/molgenis_model.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#description ⇒ Object
Returns the value of attribute description.
-
#entities ⇒ Object
Returns the value of attribute entities.
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #get_label ⇒ Object
-
#initialize ⇒ ModuleModel
constructor
A new instance of ModuleModel.
Constructor Details
#initialize ⇒ ModuleModel
Returns a new instance of ModuleModel.
45 46 47 |
# File 'lib/molgenis_model.rb', line 45 def initialize @entities = [] end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
43 44 45 |
# File 'lib/molgenis_model.rb', line 43 def color @color end |
#description ⇒ Object
Returns the value of attribute description.
43 44 45 |
# File 'lib/molgenis_model.rb', line 43 def description @description end |
#entities ⇒ Object
Returns the value of attribute entities.
43 44 45 |
# File 'lib/molgenis_model.rb', line 43 def entities @entities end |
#label ⇒ Object
Returns the value of attribute label.
43 44 45 |
# File 'lib/molgenis_model.rb', line 43 def label @label end |
#name ⇒ Object
Returns the value of attribute name.
43 44 45 |
# File 'lib/molgenis_model.rb', line 43 def name @name end |
Instance Method Details
#get_label ⇒ Object
49 50 51 52 |
# File 'lib/molgenis_model.rb', line 49 def get_label return name if label.nil? return label end |