Class: Charming::Generators::ModelGenerator::Field
- Inherits:
-
Data
- Object
- Data
- Charming::Generators::ModelGenerator::Field
- Defined in:
- lib/charming/generators/model_generator.rb
Overview
A single model field: column name and ActiveRecord type (e.g., “string”).
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
11 12 13 |
# File 'lib/charming/generators/model_generator.rb', line 11 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
11 12 13 |
# File 'lib/charming/generators/model_generator.rb', line 11 def type @type end |