Class: Links
- Inherits:
-
Object
- Object
- Links
- Defined in:
- lib/Appolo/Models/secondary/links.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
readonly
Returns the value of attribute classes.
-
#course_unit ⇒ Object
readonly
Returns the value of attribute course_unit.
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#lective_semester ⇒ Object
readonly
Returns the value of attribute lective_semester.
-
#lectures ⇒ Object
readonly
Returns the value of attribute lectures.
-
#main_teacher ⇒ Object
readonly
Returns the value of attribute main_teacher.
-
#news_items ⇒ Object
readonly
Returns the value of attribute news_items.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
-
#participants ⇒ Object
readonly
Returns the value of attribute participants.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#self ⇒ Object
readonly
Returns the value of attribute self.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#work_items ⇒ Object
readonly
Returns the value of attribute work_items.
Instance Method Summary collapse
-
#initialize(links, tpe) ⇒ Links
constructor
A new instance of Links.
Constructor Details
#initialize(links, tpe) ⇒ Links
Returns a new instance of Links.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/Appolo/Models/secondary/links.rb', line 10 def initialize(links, tpe) @self = links[ModelUtils::SELF] @root = links[ModelUtils::ROOT] @type = links[tpe] @main_teacher = links[ModelUtils::MAIN_TEACHER] @course_unit = links[ModelUtils::COURSE_UNIT] @lective_semester = links[ModelUtils::LECTIVE_SEMESTER] @classes = links[ModelUtils::CLASSES] @pages = links[ModelUtils::PAGES] @participants = links[ModelUtils::PARTICIPANTS] @groups = links[ModelUtils::GROUPS] @lectures = links[ModelUtils::LECTURES] @news_items = links[ModelUtils::NEWS_ITEMS] @work_items = links[ModelUtils::WORK_ITEMS] @resources = links[ModelUtils::RESOURCES] end |
Instance Attribute Details
#classes ⇒ Object (readonly)
Returns the value of attribute classes.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def classes @classes end |
#course_unit ⇒ Object (readonly)
Returns the value of attribute course_unit.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def course_unit @course_unit end |
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def groups @groups end |
#lective_semester ⇒ Object (readonly)
Returns the value of attribute lective_semester.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def lective_semester @lective_semester end |
#lectures ⇒ Object (readonly)
Returns the value of attribute lectures.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def lectures @lectures end |
#main_teacher ⇒ Object (readonly)
Returns the value of attribute main_teacher.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def main_teacher @main_teacher end |
#news_items ⇒ Object (readonly)
Returns the value of attribute news_items.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def news_items @news_items end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def pages @pages end |
#participants ⇒ Object (readonly)
Returns the value of attribute participants.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def participants @participants end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def resources @resources end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def root @root end |
#self ⇒ Object (readonly)
Returns the value of attribute self.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def self @self end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def type @type end |
#work_items ⇒ Object (readonly)
Returns the value of attribute work_items.
5 6 7 |
# File 'lib/Appolo/Models/secondary/links.rb', line 5 def work_items @work_items end |