Class: ExploreCourses::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/explorecourses/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_id, term, term_id, subject, code, units, section_number, component, num_enrolled, max_enrolled, num_waitlist, max_waitlist, enroll_status, add_consent, drop_consent, course_id, schedules) ⇒ Section

Returns a new instance of Section.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/explorecourses/section.rb', line 5

def initialize(class_id, term, term_id, subject, code, units, section_number, component, num_enrolled, 
    max_enrolled, num_waitlist, max_waitlist, enroll_status, add_consent, drop_consent, course_id, schedules)
    @class_id = class_id
    @term = term
    @term_id = term_id
    @subject = subject
    @code = code
    @units = units
    @section_number = section_number
    @component = component
    @num_enrolled = num_enrolled
    @max_enrolled = max_enrolled
    @num_waitlist = num_waitlist
    @max_waitlist = max_waitlist
    @enroll_status = enroll_status
    @add_consent = add_consent
    @drop_consent = drop_consent
    @course_id = course_id
    @schedules = schedules
end

Instance Attribute Details

Returns the value of attribute add_consent.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def add_consent
  @add_consent
end

#class_idObject (readonly)

Returns the value of attribute class_id.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def class_id
  @class_id
end

#codeObject (readonly)

Returns the value of attribute code.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def code
  @code
end

#componentObject (readonly)

Returns the value of attribute component.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def component
  @component
end

#course_idObject (readonly)

Returns the value of attribute course_id.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def course_id
  @course_id
end

Returns the value of attribute drop_consent.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def drop_consent
  @drop_consent
end

#enroll_statusObject (readonly)

Returns the value of attribute enroll_status.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def enroll_status
  @enroll_status
end

#max_enrolledObject (readonly)

Returns the value of attribute max_enrolled.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def max_enrolled
  @max_enrolled
end

#max_waitlistObject (readonly)

Returns the value of attribute max_waitlist.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def max_waitlist
  @max_waitlist
end

#num_enrolledObject (readonly)

Returns the value of attribute num_enrolled.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def num_enrolled
  @num_enrolled
end

#num_waitlistObject (readonly)

Returns the value of attribute num_waitlist.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def num_waitlist
  @num_waitlist
end

#schedulesObject (readonly)

Returns the value of attribute schedules.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def schedules
  @schedules
end

#section_numberObject (readonly)

Returns the value of attribute section_number.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def section_number
  @section_number
end

#subjectObject (readonly)

Returns the value of attribute subject.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def subject
  @subject
end

#termObject (readonly)

Returns the value of attribute term.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def term
  @term
end

#term_idObject (readonly)

Returns the value of attribute term_id.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def term_id
  @term_id
end

#unitsObject (readonly)

Returns the value of attribute units.



26
27
28
# File 'lib/explorecourses/section.rb', line 26

def units
  @units
end