Class: ActiveInTime::Instructor
- Inherits:
-
Object
- Object
- ActiveInTime::Instructor
- Defined in:
- lib/ait_connect/instructor.rb
Instance Attribute Summary collapse
-
#json ⇒ Object
readonly
Returns the value of attribute json.
Instance Method Summary collapse
- #display_name ⇒ Object
- #first_name ⇒ Object
- #id ⇒ Object
-
#initialize(active_in_time, json) ⇒ Instructor
constructor
A new instance of Instructor.
- #last_name ⇒ Object
Constructor Details
#initialize(active_in_time, json) ⇒ Instructor
Returns a new instance of Instructor.
5 6 7 |
# File 'lib/ait_connect/instructor.rb', line 5 def initialize(active_in_time, json) @active_in_time, @json = active_in_time, json end |
Instance Attribute Details
#json ⇒ Object (readonly)
Returns the value of attribute json.
3 4 5 |
# File 'lib/ait_connect/instructor.rb', line 3 def json @json end |
Instance Method Details
#display_name ⇒ Object
21 22 23 |
# File 'lib/ait_connect/instructor.rb', line 21 def display_name @json["display_name"] end |
#first_name ⇒ Object
13 14 15 |
# File 'lib/ait_connect/instructor.rb', line 13 def first_name @json["first_name"] end |
#id ⇒ Object
9 10 11 |
# File 'lib/ait_connect/instructor.rb', line 9 def id @json["id"] end |
#last_name ⇒ Object
17 18 19 |
# File 'lib/ait_connect/instructor.rb', line 17 def last_name @json["last_name"] end |