class AcademicBenchmarks::Standards::EducationLevels

Attributes

grades[RW]

Public Class Methods

from_hash(hash) click to toggle source
# File lib/academic_benchmarks/standards/education_levels.rb, line 12
def self.from_hash(hash)
  self.new(grades: hash["grades"])
end
new(grades:) click to toggle source
# File lib/academic_benchmarks/standards/education_levels.rb, line 16
def initialize(grades:)
  @grades = attr_to_vals(Grade, grades)
end