Class: Excelizer::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/excelizer/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  self.name = name
  self.header = options[:header] unless options[:header].nil?
end

Instance Attribute Details

#headerObject



11
12
13
# File 'lib/excelizer/attribute.rb', line 11

def header
  (@header || default_header)
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/excelizer/attribute.rb', line 4

def name
  @name
end