Class: IneligibleReason
- Inherits:
-
ActiveRecordShared
- Object
- ActiveRecord::Base
- ActiveRecordShared
- IneligibleReason
- Defined in:
- app/models/ineligible_reason.rb
Overview
requires
* description (unique and > 3 chars)
Instance Method Summary collapse
-
#is_other? ⇒ Boolean
Returns boolean of comparison true only if key == ‘other’.
-
#to_s ⇒ Object
Returns description.
Instance Method Details
#is_other? ⇒ Boolean
Returns boolean of comparison true only if key == ‘other’
22 23 24 |
# File 'app/models/ineligible_reason.rb', line 22 def is_other? key == 'other' end |
#to_s ⇒ Object
Returns description
16 17 18 |
# File 'app/models/ineligible_reason.rb', line 16 def to_s description end |