Class: Xmlss::Element::Row

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Row

Returns a new instance of Row.



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

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

Instance Attribute Details

#auto_fit_heightObject

Returns the value of attribute auto_fit_height.



7
8
9
# File 'lib/xmlss/element/row.rb', line 7

def auto_fit_height
  @auto_fit_height
end

#heightObject

Returns the value of attribute height.



7
8
9
# File 'lib/xmlss/element/row.rb', line 7

def height
  @height
end

#hiddenObject

Returns the value of attribute hidden.



7
8
9
# File 'lib/xmlss/element/row.rb', line 7

def hidden
  @hidden
end

#style_idObject

Returns the value of attribute style_id.



7
8
9
# File 'lib/xmlss/element/row.rb', line 7

def style_id
  @style_id
end

Class Method Details

.writerObject



5
# File 'lib/xmlss/element/row.rb', line 5

def self.writer; :row; end

Instance Method Details

#autofitObject



23
# File 'lib/xmlss/element/row.rb', line 23

def autofit;         self.auto_fit_height;         end

#autofit=(value) ⇒ Object



24
# File 'lib/xmlss/element/row.rb', line 24

def autofit=(value); self.auto_fit_height = value; end

#autofit?Boolean

Returns:

  • (Boolean)


26
# File 'lib/xmlss/element/row.rb', line 26

def autofit?; !!self.autofit; end

#hidden?Boolean

Returns:

  • (Boolean)


27
# File 'lib/xmlss/element/row.rb', line 27

def hidden?;  !!self.hidden;  end