Class: Verso::CorrelationList
- Extended by:
- Forwardable
- Includes:
- Enumerable, HTTPGettable
- Defined in:
- lib/verso/correlation_list.rb
Overview
Correlation List Resource
A crosswalk of competencies to standards body goals.
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
Course code.
-
#edition ⇒ String
readonly
Edition year.
-
#name ⇒ String
readonly
Standards Body name, used as an identifier and not to be confused with its title.
Attributes inherited from Base
Instance Method Summary collapse
-
#title ⇒ String
Standards body title.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Verso::Base
Instance Attribute Details
#code ⇒ String (readonly)
Returns Course code.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/verso/correlation_list.rb', line 20 class CorrelationList < Verso::Base include Enumerable include HTTPGettable extend Forwardable def_delegators :correlations, :[], :each, :empty?, :last, :length attr_reader :code, :edition, :name # @return [String] Standards body title def title @title ||= first.goals.first.title end private def correlations @correlations ||= get_attr(:correlations). collect { |c| Task.new(c.merge(:code => code, :edition => edition)) } end def path "/courses/#{code},#{edition}/standards/#{name}/correlations" end end |
#edition ⇒ String (readonly)
Returns Edition year.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/verso/correlation_list.rb', line 20 class CorrelationList < Verso::Base include Enumerable include HTTPGettable extend Forwardable def_delegators :correlations, :[], :each, :empty?, :last, :length attr_reader :code, :edition, :name # @return [String] Standards body title def title @title ||= first.goals.first.title end private def correlations @correlations ||= get_attr(:correlations). collect { |c| Task.new(c.merge(:code => code, :edition => edition)) } end def path "/courses/#{code},#{edition}/standards/#{name}/correlations" end end |
#name ⇒ String (readonly)
Returns Standards Body name, used as an identifier and not to be confused with its title.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/verso/correlation_list.rb', line 20 class CorrelationList < Verso::Base include Enumerable include HTTPGettable extend Forwardable def_delegators :correlations, :[], :each, :empty?, :last, :length attr_reader :code, :edition, :name # @return [String] Standards body title def title @title ||= first.goals.first.title end private def correlations @correlations ||= get_attr(:correlations). collect { |c| Task.new(c.merge(:code => code, :edition => edition)) } end def path "/courses/#{code},#{edition}/standards/#{name}/correlations" end end |
Instance Method Details
#title ⇒ String
Returns Standards body title.
28 29 30 |
# File 'lib/verso/correlation_list.rb', line 28 def title @title ||= first.goals.first.title end |