Class: SampleModels::Creation::VirtualColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/sample_models/creation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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

#typeObject



178
179
180
# File 'lib/sample_models/creation.rb', line 178

def type
  :string
end