Class: Clever::Models::Section
- Inherits:
-
Object
- Object
- Clever::Models::Section
- Defined in:
- lib/clever/models/section.rb
Instance Attribute Summary collapse
-
#district_id ⇒ Object
Returns the value of attribute district_id.
-
#grade ⇒ Object
Returns the value of attribute grade.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#name ⇒ Object
Returns the value of attribute name.
-
#school_id ⇒ Object
Returns the value of attribute school_id.
-
#section_number ⇒ Object
Returns the value of attribute section_number.
-
#sis_id ⇒ Object
Returns the value of attribute sis_id.
-
#students ⇒ Object
Returns the value of attribute students.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#teacher_id ⇒ Object
Returns the value of attribute teacher_id.
Instance Method Summary collapse
-
#initialize(params) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(params) ⇒ Section
Returns a new instance of Section.
4 5 6 |
# File 'lib/clever/models/section.rb', line 4 def initialize params params.each { |k,v| instance_variable_set("@#{k}", v) unless v.nil? } end |
Instance Attribute Details
#district_id ⇒ Object
Returns the value of attribute district_id.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def district_id @district_id end |
#grade ⇒ Object
Returns the value of attribute grade.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def grade @grade end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def id @id end |
#last_modified ⇒ Object
Returns the value of attribute last_modified.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def last_modified @last_modified end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def name @name end |
#school_id ⇒ Object
Returns the value of attribute school_id.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def school_id @school_id end |
#section_number ⇒ Object
Returns the value of attribute section_number.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def section_number @section_number end |
#sis_id ⇒ Object
Returns the value of attribute sis_id.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def sis_id @sis_id end |
#students ⇒ Object
Returns the value of attribute students.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def students @students end |
#subject ⇒ Object
Returns the value of attribute subject.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def subject @subject end |
#teacher_id ⇒ Object
Returns the value of attribute teacher_id.
2 3 4 |
# File 'lib/clever/models/section.rb', line 2 def teacher_id @teacher_id end |