Class: Xmlss::Element::Cell

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}, &build) ⇒ Cell

Returns a new instance of Cell.



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

def initialize(attrs={}, &build)
  self.index = attrs[:index]
  self.style_id = attrs[:style_id]
  self.formula = attrs[:formula]
  self.href = attrs[:href]
  self.merge_across = attrs[:merge_across] || 0
  self.merge_down = attrs[:merge_down] || 0
end

Instance Attribute Details

#formulaObject

Returns the value of attribute formula.



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

def formula
  @formula
end

#hrefObject Also known as: h_ref

Returns the value of attribute href.



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

def href
  @href
end

#indexObject

Returns the value of attribute index.



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

def index
  @index
end

#merge_acrossObject

Returns the value of attribute merge_across.



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

def merge_across
  @merge_across
end

#merge_downObject

Returns the value of attribute merge_down.



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

def merge_down
  @merge_down
end

#style_idObject Also known as: style_i_d

Returns the value of attribute style_id.



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

def style_id
  @style_id
end