Class: SampleModels::Creation::VirtualColumn
- Inherits:
-
Object
- Object
- SampleModels::Creation::VirtualColumn
- Defined in:
- lib/sample_models/creation.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ VirtualColumn
constructor
A new instance of VirtualColumn.
- #type ⇒ Object
Constructor Details
#initialize(name) ⇒ VirtualColumn
Returns a new instance of VirtualColumn.
174 175 176 |
# File 'lib/sample_models/creation.rb', line 174 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
172 173 174 |
# File 'lib/sample_models/creation.rb', line 172 def name @name end |
Instance Method Details
#type ⇒ Object
178 179 180 |
# File 'lib/sample_models/creation.rb', line 178 def type :string end |