class GreatSchools::Test
GreatSchools
Test
¶ ↑
Attributes
abbreviation[RW]
description[RW]
id[RW]
level_code[RW]
name[RW]
results[RW]
scale[RW]
Public Instance Methods
results=(params)
click to toggle source
Set an array of GreatSchools::Result
.
Attributes¶ ↑
-
params
- aHash
orArray
ofGreatSchools::Result
attributes.
# File lib/great_schools/test.rb, line 11 def results=(params) @results = [] Array.wrap(params).each do |hash| @results << GreatSchools::Result.new(hash) end @results end
Also aliased as: test_result=