Module: Services::SltcRegistrationsHelper

Defined in:
app/helpers/services/sltc_registrations_helper.rb

Instance Method Summary collapse

Instance Method Details

#sltc_registration_status(status) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'app/helpers/services/sltc_registrations_helper.rb', line 4

def sltc_registration_status(status)
  status_name = 'Unknown'
  case status
  when Services::SltcRegistration::STATUS_NEW
    status_name = 'New'
  when Services::SltcRegistration::STATUS_REGISTERED
    status_name = 'Completed'
  end
  "(#{status}) #{status_name}"
end