Class: AnnotateRb::ModelAnnotator::ColumnAnnotation::EnumDefault

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



8
9
10
# File 'lib/annotate_rb/model_annotator/column_annotation/enum_default.rb', line 8

def label
  @label
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



8
9
10
# File 'lib/annotate_rb/model_annotator/column_annotation/enum_default.rb', line 8

def raw
  @raw
end