Class: FakeColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/schemy/fake_column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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



8
9
10
# File 'lib/schemy/fake_column.rb', line 8

def to_s
  "#{@name}:#{@type}"
end