Class: AnnotateRb::ModelAnnotator::ColumnAnnotation::EnumDefault
- Inherits:
-
Struct
- Object
- Struct
- AnnotateRb::ModelAnnotator::ColumnAnnotation::EnumDefault
- Defined in:
- lib/annotate_rb/model_annotator/column_annotation/enum_default.rb
Overview
Pairs the raw DB default of an enum backed column with its label, so that annotations can show both.
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
8 9 10 |
# File 'lib/annotate_rb/model_annotator/column_annotation/enum_default.rb', line 8 def label @label end |
#raw ⇒ Object
Returns the value of attribute raw
8 9 10 |
# File 'lib/annotate_rb/model_annotator/column_annotation/enum_default.rb', line 8 def raw @raw end |