Class: Kitsune::FauxColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/kitsune/faux_column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, primary = false) ⇒ FauxColumn

Returns a new instance of FauxColumn.



4
5
6
# File 'lib/kitsune/faux_column.rb', line 4

def initialize(name, type, primary = false)
  @name, @type, @primary = name, type, primary
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/kitsune/faux_column.rb', line 3

def name
  @name
end

#primaryObject

Returns the value of attribute primary.



3
4
5
# File 'lib/kitsune/faux_column.rb', line 3

def primary
  @primary
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/kitsune/faux_column.rb', line 3

def type
  @type
end