Class: ExploreCourses::Section
- Inherits:
-
Object
- Object
- ExploreCourses::Section
- Defined in:
- lib/explorecourses/section.rb
Instance Attribute Summary collapse
-
#add_consent ⇒ Object
readonly
Returns the value of attribute add_consent.
-
#class_id ⇒ Object
readonly
Returns the value of attribute class_id.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#course_id ⇒ Object
readonly
Returns the value of attribute course_id.
-
#drop_consent ⇒ Object
readonly
Returns the value of attribute drop_consent.
-
#enroll_status ⇒ Object
readonly
Returns the value of attribute enroll_status.
-
#max_enrolled ⇒ Object
readonly
Returns the value of attribute max_enrolled.
-
#max_waitlist ⇒ Object
readonly
Returns the value of attribute max_waitlist.
-
#num_enrolled ⇒ Object
readonly
Returns the value of attribute num_enrolled.
-
#num_waitlist ⇒ Object
readonly
Returns the value of attribute num_waitlist.
-
#schedules ⇒ Object
readonly
Returns the value of attribute schedules.
-
#section_number ⇒ Object
readonly
Returns the value of attribute section_number.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#term ⇒ Object
readonly
Returns the value of attribute term.
-
#term_id ⇒ Object
readonly
Returns the value of attribute term_id.
-
#units ⇒ Object
readonly
Returns the value of attribute units.
Instance Method Summary collapse
-
#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
constructor
A new instance of Section.
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, , , 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 = @drop_consent = @course_id = course_id @schedules = schedules end |
Instance Attribute Details
#add_consent ⇒ Object (readonly)
Returns the value of attribute add_consent.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def @add_consent end |
#class_id ⇒ Object (readonly)
Returns the value of attribute class_id.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def class_id @class_id end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def code @code end |
#component ⇒ Object (readonly)
Returns the value of attribute component.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def component @component end |
#course_id ⇒ Object (readonly)
Returns the value of attribute course_id.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def course_id @course_id end |
#drop_consent ⇒ Object (readonly)
Returns the value of attribute drop_consent.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def @drop_consent end |
#enroll_status ⇒ Object (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_enrolled ⇒ Object (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_waitlist ⇒ Object (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_enrolled ⇒ Object (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_waitlist ⇒ Object (readonly)
Returns the value of attribute num_waitlist.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def num_waitlist @num_waitlist end |
#schedules ⇒ Object (readonly)
Returns the value of attribute schedules.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def schedules @schedules end |
#section_number ⇒ Object (readonly)
Returns the value of attribute section_number.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def section_number @section_number end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def subject @subject end |
#term ⇒ Object (readonly)
Returns the value of attribute term.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def term @term end |
#term_id ⇒ Object (readonly)
Returns the value of attribute term_id.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def term_id @term_id end |
#units ⇒ Object (readonly)
Returns the value of attribute units.
26 27 28 |
# File 'lib/explorecourses/section.rb', line 26 def units @units end |