Module: VariableContainer

Included in:
Study, VariableGroup
Defined in:
lib/nesstar-api/variable-container.rb

Instance Method Summary collapse

Instance Method Details

#get_variable_groupsObject

Gets a list of variable groups.



14
15
16
17
18
19
# File 'lib/nesstar-api/variable-container.rb', line 14

def get_variable_groups
  json_variable_groups = get_values "#{get_rest_type}/#{@id}/#{get_variable_group_type}"
  json_variable_groups.collect do | variable_group_json |
    VariableGroup.new variable_group_json
  end
end

#get_variablesObject

Gets a list of variables.



5
6
7
8
9
10
# File 'lib/nesstar-api/variable-container.rb', line 5

def get_variables
  json_variables = get_values "#{get_rest_type}/#{@id}/variables"
  json_variables.collect do | variable_json |
    Variable.new variable_json
  end
end