Krystosterone/rubik

View on GitHub
app/models/schedule_course.rb

Summary

Maintainability
A
45 mins
Test Coverage
# frozen_string_literal: true
 
class ScheduleCourse < WeekdayTimeRange
attr_accessor :code, :index, :number, :type
 
Method `==` has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
def ==(other)
return false unless code == other.code
return false unless index == other.index
return false unless number == other.number
return false unless type == other.type
 
super
end
end