Class: VariableGroup
- Inherits:
-
NesstarObject
- Object
- NesstarObject
- VariableGroup
- Includes:
- VariableContainer
- Defined in:
- lib/nesstar-api/variable-group.rb
Overview
Represents a group of variables in a Study.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ VariableGroup
constructor
A new instance of VariableGroup.
Methods included from VariableContainer
#get_variable_groups, #get_variables
Constructor Details
#initialize(data) ⇒ VariableGroup
Returns a new instance of VariableGroup.
11 12 13 14 |
# File 'lib/nesstar-api/variable-group.rb', line 11 def initialize(data) @id = data['id'] @name = data['name'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/nesstar-api/variable-group.rb', line 9 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/nesstar-api/variable-group.rb', line 9 def name @name end |