Class: RefusalReason

Inherits:
ActiveRecordShared show all
Defined in:
app/models/refusal_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)


19
20
21
# File 'app/models/refusal_reason.rb', line 19

def is_other?
	key == 'other'
end

#to_sObject

Returns description



13
14
15
# File 'app/models/refusal_reason.rb', line 13

def to_s
	description
end