Class: Verso::DutyArea
Overview
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
Course code.
-
#edition ⇒ String
readonly
Course edition year.
-
#title ⇒ String
readonly
Duty Area title.
Attributes inherited from Base
Instance Method Summary collapse
-
#tasks ⇒ Array
Tasks within this Duty Area.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Verso::Base
Instance Attribute Details
#code ⇒ String (readonly)
Returns Course code.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/verso/duty_area.rb', line 18 class DutyArea < Verso::Base attr_reader :code, :edition, :title # Tasks within this Duty Area # # @return [Array] {Verso::Task} objects def tasks @tasks ||= get_attr(:tasks).collect do |t| Task.new(t.merge(:code => code, :edition => edition)) end end end |
#edition ⇒ String (readonly)
Returns Course edition year.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/verso/duty_area.rb', line 18 class DutyArea < Verso::Base attr_reader :code, :edition, :title # Tasks within this Duty Area # # @return [Array] {Verso::Task} objects def tasks @tasks ||= get_attr(:tasks).collect do |t| Task.new(t.merge(:code => code, :edition => edition)) end end end |
#title ⇒ String (readonly)
Returns Duty Area title.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/verso/duty_area.rb', line 18 class DutyArea < Verso::Base attr_reader :code, :edition, :title # Tasks within this Duty Area # # @return [Array] {Verso::Task} objects def tasks @tasks ||= get_attr(:tasks).collect do |t| Task.new(t.merge(:code => code, :edition => edition)) end end end |