Class: Gaku::EnrollmentSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/gaku/enrollment_serializer.rb

Instance Method Summary collapse

Instance Method Details

#course_enrollment?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/serializers/gaku/enrollment_serializer.rb', line 10

def course_enrollment?
  object.course_type?
end

#course_idObject



6
7
8
# File 'app/serializers/gaku/enrollment_serializer.rb', line 6

def course_id
  object.enrollable_id
end