class LectiveSemester
Attributes
start_year[R]
term[R]
term_name[R]
Public Class Methods
new(json_str)
click to toggle source
Calls superclass method
Element::new
# File lib/Appolo/Models/main_model/lective_semester.rb, line 11 def initialize(json_str) json_data = check_json_info json_str super(json_data[ModelUtils::LECTIVE_ID], json_data[ModelUtils::SHORT_NAME], json_data[ModelUtils::LINKS], @@type_of_links) @start_year = json_data[ModelUtils::START_YEAR] @term = json_data[ModelUtils::TERM] @term_name = json_data[ModelUtils::TERM_NAME] end
Public Instance Methods
to_s()
click to toggle source
# File lib/Appolo/Models/main_model/lective_semester.rb, line 23 def to_s "#{@id} - #{@short_name} : #{@term_name} #{@start_year}" end