Class: Links

Inherits:
Object
  • Object
show all
Defined in:
lib/Appolo/Models/links.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
27
# File 'lib/Appolo/Models/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

#classesObject (readonly)

Returns the value of attribute classes


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def classes
  @classes
end

#course_unitObject (readonly)

Returns the value of attribute course_unit


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def course_unit
  @course_unit
end

#groupsObject (readonly)

Returns the value of attribute groups


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def groups
  @groups
end

#lective_semesterObject (readonly)

Returns the value of attribute lective_semester


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def lective_semester
  @lective_semester
end

#lecturesObject (readonly)

Returns the value of attribute lectures


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def lectures
  @lectures
end

#main_teacherObject (readonly)

Returns the value of attribute main_teacher


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def main_teacher
  @main_teacher
end

#news_itemsObject (readonly)

Returns the value of attribute news_items


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def news_items
  @news_items
end

#pagesObject (readonly)

Returns the value of attribute pages


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def pages
  @pages
end

#participantsObject (readonly)

Returns the value of attribute participants


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def participants
  @participants
end

#resourcesObject (readonly)

Returns the value of attribute resources


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def resources
  @resources
end

#rootObject (readonly)

Returns the value of attribute root


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def root
  @root
end

#selfObject (readonly)

Returns the value of attribute self


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def self
  @self
end

#typeObject (readonly)

Returns the value of attribute type


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def type
  @type
end

#work_itemsObject (readonly)

Returns the value of attribute work_items


5
6
7
# File 'lib/Appolo/Models/links.rb', line 5

def work_items
  @work_items
end