Method: AdHonorem::Progress#progress

Defined in:
lib/adhonorem/models/progress.rb

#progress(progress_type = :numeric) ⇒ Object



28
29
30
31
# File 'lib/adhonorem/models/progress.rb', line 28

def progress(progress_type = :numeric)
  raise AdHonorem::NotSuchProgressType unless PROGRESS_TYPES.keys.include?(progress_type)
  send(PROGRESS_TYPES[progress_type])
end