Class: Millionaire::Column
- Inherits:
-
Object
- Object
- Millionaire::Column
- Defined in:
- lib/millionaire/column.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#uniq ⇒ Object
Returns the value of attribute uniq.
Instance Method Summary collapse
-
#initialize(name, option) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(name, option) ⇒ Column
Returns a new instance of Column.
7 8 9 10 11 |
# File 'lib/millionaire/column.rb', line 7 def initialize(name, option) @name = name.to_s @uniq = option[:uniq] @option = option end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/millionaire/column.rb', line 5 def name @name end |
#uniq ⇒ Object
Returns the value of attribute uniq.
5 6 7 |
# File 'lib/millionaire/column.rb', line 5 def uniq @uniq end |