Class: Xmlss::Element::Column
- Inherits:
-
Object
- Object
- Xmlss::Element::Column
- Defined in:
- lib/xmlss/element/column.rb
Instance Attribute Summary collapse
-
#auto_fit_width ⇒ Object
Returns the value of attribute auto_fit_width.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#style_id ⇒ Object
(also: #style_i_d)
Returns the value of attribute style_id.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Column
constructor
A new instance of Column.
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_width ⇒ Object
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 |
#hidden ⇒ Object
Returns the value of attribute hidden.
5 6 7 |
# File 'lib/xmlss/element/column.rb', line 5 def hidden @hidden end |
#style_id ⇒ Object 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 |
#width ⇒ Object
Returns the value of attribute width.
5 6 7 |
# File 'lib/xmlss/element/column.rb', line 5 def width @width end |