Class: IneligibleReason

Inherits:
ActiveRecordShared show all
Defined in:
app/models/ineligible_reason.rb

Overview

requires

* description (unique and > 3 chars)

Instance Method Summary collapse

Instance Method Details

#is_other?Boolean

Returns boolean of comparison true only if key == ‘other’

Returns:

  • (Boolean)


22
23
24
# File 'app/models/ineligible_reason.rb', line 22

def is_other?
	key == 'other'
end

#to_sObject

Returns description



16
17
18
# File 'app/models/ineligible_reason.rb', line 16

def to_s
	description
end