Class: Clever::Models::Teacher
- Inherits:
-
Object
- Object
- Clever::Models::Teacher
- Defined in:
- lib/clever/models/teacher.rb
Instance Attribute Summary collapse
-
#district_id ⇒ Object
Returns the value of attribute district_id.
-
#email ⇒ Object
Returns the value of attribute email.
-
#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.
-
#sis_id ⇒ Object
Returns the value of attribute sis_id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(params) ⇒ Teacher
constructor
A new instance of Teacher.
Constructor Details
#initialize(params) ⇒ Teacher
Returns a new instance of Teacher.
4 5 6 |
# File 'lib/clever/models/teacher.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/teacher.rb', line 2 def district_id @district_id end |
#email ⇒ Object
Returns the value of attribute email.
2 3 4 |
# File 'lib/clever/models/teacher.rb', line 2 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/clever/models/teacher.rb', line 2 def id @id end |
#last_modified ⇒ Object
Returns the value of attribute last_modified.
2 3 4 |
# File 'lib/clever/models/teacher.rb', line 2 def last_modified @last_modified end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/clever/models/teacher.rb', line 2 def name @name end |
#school_id ⇒ Object
Returns the value of attribute school_id.
2 3 4 |
# File 'lib/clever/models/teacher.rb', line 2 def school_id @school_id end |
#sis_id ⇒ Object
Returns the value of attribute sis_id.
2 3 4 |
# File 'lib/clever/models/teacher.rb', line 2 def sis_id @sis_id end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/clever/models/teacher.rb', line 2 def title @title end |