Class: VariableGroup

Inherits:
NesstarObject show all
Includes:
VariableContainer
Defined in:
lib/nesstar-api/variable-group.rb

Overview

Represents a group of variables in a Study.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/nesstar-api/variable-group.rb', line 9

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/nesstar-api/variable-group.rb', line 9

def name
  @name
end