class SIF::Infra::Common::EventObject

Public Instance Methods

datatype() click to toggle source
# File lib/sif/infra/common/event_object.rb, line 48
def datatype
  object_name.underscore.to_sym
end
object() click to toggle source
# File lib/sif/infra/common/event_object.rb, line 30
def object
  school_course_info ||
  school_info ||
  staff_personal ||
  student_personal ||
  student_section_enrollment ||
  term_info ||
  section_info || 
  grading_assignment || 
  grading_assignment_score || 
  grading_category
end
object=(obj) click to toggle source
# File lib/sif/infra/common/event_object.rb, line 43
def object=(obj)
  attr_name = obj.class.to_s.split('::').last.underscore
  self.send("#{attr_name}=", obj)
end