Class: FakeColumn
- Inherits:
-
Object
- Object
- FakeColumn
- Defined in:
- lib/schemy/fake_column.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ FakeColumn
constructor
A new instance of FakeColumn.
- #to_s ⇒ Object
Constructor Details
#initialize(name, type) ⇒ FakeColumn
Returns a new instance of FakeColumn.
4 5 6 7 |
# File 'lib/schemy/fake_column.rb', line 4 def initialize(name, type) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/schemy/fake_column.rb', line 2 def name @name end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/schemy/fake_column.rb', line 8 def to_s "#{@name}:#{@type}" end |