Class: AcademicBenchmarks::Standards::Parent
- Inherits:
-
Object
- Object
- AcademicBenchmarks::Standards::Parent
- Includes:
- InstVarsToHash
- Defined in:
- lib/academic_benchmarks/standards/parent.rb
Instance Attribute Summary collapse
-
#deepest ⇒ Object
Returns the value of attribute deepest.
-
#description ⇒ Object
Returns the value of attribute description.
-
#guid ⇒ Object
Returns the value of attribute guid.
-
#label ⇒ Object
Returns the value of attribute label.
-
#level ⇒ Object
Returns the value of attribute level.
-
#number ⇒ Object
Returns the value of attribute number.
-
#seq ⇒ Object
Returns the value of attribute seq.
-
#status ⇒ Object
Returns the value of attribute status.
-
#stem ⇒ Object
Returns the value of attribute stem.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(guid:, description:, number:, stem:, label:, deepest:, seq:, level:, status:, version:) ⇒ Parent
constructor
A new instance of Parent.
Methods included from InstVarsToHash
Constructor Details
#initialize(guid:, description:, number:, stem:, label:, deepest:, seq:, level:, status:, version:) ⇒ Parent
Returns a new instance of Parent.
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 26 def initialize(guid:, description:, number:, stem:, label:, deepest:, seq:, level:, status:, version:) @guid = guid @description = description @number = number @stem = stem @label = label @deepest = deepest @seq = seq @level = level @status = status @version = version end |
Instance Attribute Details
#deepest ⇒ Object
Returns the value of attribute deepest.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def deepest @deepest end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def description @description end |
#guid ⇒ Object
Returns the value of attribute guid.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def guid @guid end |
#label ⇒ Object
Returns the value of attribute label.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def label @label end |
#level ⇒ Object
Returns the value of attribute level.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def level @level end |
#number ⇒ Object
Returns the value of attribute number.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def number @number end |
#seq ⇒ Object
Returns the value of attribute seq.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def seq @seq end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def status @status end |
#stem ⇒ Object
Returns the value of attribute stem.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def stem @stem end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 8 def version @version end |
Class Method Details
.from_hash(hash) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/academic_benchmarks/standards/parent.rb', line 11 def self.from_hash(hash) self.new( guid: hash["guid"], description: hash["description"], number: hash["number"], stem: hash["stem"], label: hash["label"], deepest: hash["deepest"], seq: hash["seq"], level: hash["level"], status: hash["status"], version: hash["version"] ) end |