Class: Excelizer::Attribute
- Inherits:
-
Object
- Object
- Excelizer::Attribute
- Defined in:
- lib/excelizer/attribute.rb
Instance Attribute Summary collapse
- #header ⇒ Object readonly
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, options) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(name, options) ⇒ Attribute
Returns a new instance of Attribute.
6 7 8 9 |
# File 'lib/excelizer/attribute.rb', line 6 def initialize(name, ) self.name = name self.header = [:header] unless [:header].nil? end |
Instance Attribute Details
#header ⇒ Object
11 12 13 |
# File 'lib/excelizer/attribute.rb', line 11 def header (@header || default_header) end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/excelizer/attribute.rb', line 4 def name @name end |