Module: OSU::Semester

Defined in:
lib/osu_term.rb

Overview

Logic for OSU semesters

Constant Summary collapse

SEASONS =

Spring, Summer, Autumn

/(2|4|8)$/

Instance Method Summary collapse

Instance Method Details

#abbr_typeObject



228
229
230
# File 'lib/osu_term.rb', line 228

def abbr_type
  strm[-1] == SUMMER ? 'Trm' : 'Sem'
end

#quarter?Boolean

Returns:

  • (Boolean)


232
233
234
# File 'lib/osu_term.rb', line 232

def quarter?
  false
end

#semester?Boolean

Returns:

  • (Boolean)


236
237
238
# File 'lib/osu_term.rb', line 236

def semester?
  true
end

#transition_semester?Boolean

Returns:

  • (Boolean)


240
241
242
# File 'lib/osu_term.rb', line 240

def transition_semester?
  false
end

#typeObject



224
225
226
# File 'lib/osu_term.rb', line 224

def type
  strm[-1] == SUMMER ? 'Term' : 'Semester'
end