class CourseUnit
Attributes
name[R]
programs[R]
Public Class Methods
new(json_info)
click to toggle source
Calls superclass method
Element::new
# File lib/Appolo/Models/main_model/courses.rb, line 10 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) @name = json_data[ModelUtils::FULL_NAME] || json_data[ModelUtils::NAME] #@programs = TODO end
Public Instance Methods
to_s()
click to toggle source
# File lib/Appolo/Models/main_model/courses.rb, line 23 def to_s "#{@id} - #{@short_name}" end