Class: Kitsune::FauxColumn
- Inherits:
-
Object
- Object
- Kitsune::FauxColumn
- Defined in:
- lib/kitsune/faux_column.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, primary = false) ⇒ FauxColumn
constructor
A new instance of FauxColumn.
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
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/kitsune/faux_column.rb', line 3 def name @name end |
#primary ⇒ Object
Returns the value of attribute primary.
3 4 5 |
# File 'lib/kitsune/faux_column.rb', line 3 def primary @primary end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/kitsune/faux_column.rb', line 3 def type @type end |