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