Class: SqlEnum::EnumColumn
- Inherits:
-
Struct
- Object
- Struct
- SqlEnum::EnumColumn
- Defined in:
- lib/sql_enum/enum_column.rb
Instance Attribute Summary collapse
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
Instance Attribute Details
#column_name ⇒ Object
Returns the value of attribute column_name
4 5 6 |
# File 'lib/sql_enum/enum_column.rb', line 4 def column_name @column_name end |
#table_name ⇒ Object
Returns the value of attribute table_name
4 5 6 |
# File 'lib/sql_enum/enum_column.rb', line 4 def table_name @table_name end |
Instance Method Details
#values ⇒ Object
5 6 7 |
# File 'lib/sql_enum/enum_column.rb', line 5 def values schema_values.to_s.scan(/\w+/).reject { |v| v == 'enum' } end |