class Teacher
Attributes
academic_email[R]
avatar_url[R]
name[R]
number[R]
Public Class Methods
new(json_info)
click to toggle source
Calls superclass method
Element::new
# File lib/Appolo/Models/main_model/teacher.rb, line 13 def initialize(json_info) json_data = check_json_info json_info super(json_data[ModelUtils::ID], json_data[ModelUtils::SHORT_NAME], json_data[ModelUtils::LINKS], @@type_of_links) @number = json_data[ModelUtils::NUMBER] @name = json_data[ModelUtils::NAME] @academic_email = json_data[ModelUtils::ACADEMIC_EMAIL] @avatar_url = AvatarUrl.new(json_data[ModelUtils::AVATAR_URL]) end
Public Instance Methods
to_s()
click to toggle source
# File lib/Appolo/Models/main_model/teacher.rb, line 27 def to_s "#{@id} - #{@short_name} : #{@academic_email}" end