Class: Xmlss::Element::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlss/element/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Column

Returns a new instance of Column.



8
9
10
11
12
13
# File 'lib/xmlss/element/column.rb', line 8

def initialize(attrs={})
  self.style_id = attrs[:style_id]
  self.width = attrs[:width]
  self.auto_fit_width = attrs[:auto_fit_width] || false
  self.hidden = attrs[:hidden] || false
end

Instance Attribute Details

#auto_fit_widthObject

Returns the value of attribute auto_fit_width.



5
6
7
# File 'lib/xmlss/element/column.rb', line 5

def auto_fit_width
  @auto_fit_width
end

#hiddenObject

Returns the value of attribute hidden.



5
6
7
# File 'lib/xmlss/element/column.rb', line 5

def hidden
  @hidden
end

#style_idObject Also known as: style_i_d

Returns the value of attribute style_id.



5
6
7
# File 'lib/xmlss/element/column.rb', line 5

def style_id
  @style_id
end

#widthObject

Returns the value of attribute width.



5
6
7
# File 'lib/xmlss/element/column.rb', line 5

def width
  @width
end