Class: Effective::Ring
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::Ring
- Defined in:
- app/models/effective/ring.rb
Constant Summary collapse
- SIZES =
[3, 4, 5, 6, 7, 8]
- TITANIUM_SIZES =
[3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
- METALS =
['14k Yellow Gold', 'Sterling Silver', 'Titanium']
Instance Method Summary collapse
-
#mark_as_issued! ⇒ Object
Admin action.
-
#mark_as_submitted! ⇒ Object
Admin action.
-
#submit! ⇒ Object
Called by a ring wizard when submitted.
- #to_s ⇒ Object
Instance Method Details
#mark_as_issued! ⇒ Object
Admin action
83 84 85 |
# File 'app/models/effective/ring.rb', line 83 def mark_as_issued! issued! end |
#mark_as_submitted! ⇒ Object
Admin action
78 79 80 |
# File 'app/models/effective/ring.rb', line 78 def mark_as_submitted! submitted! end |
#submit! ⇒ Object
Called by a ring wizard when submitted
73 74 75 |
# File 'app/models/effective/ring.rb', line 73 def submit! submitted! end |
#to_s ⇒ Object
65 66 67 68 69 70 |
# File 'app/models/effective/ring.rb', line 65 def to_s [ model_name.human, ("#{} size #{size}" if .present? && size.present?) ].compact.join(' - ') end |