Class: SpreadsheetX::CellFormat

Inherits:
Object
  • Object
show all
Defined in:
lib/spreadsheetx/cell_format.rb

Overview

this object represents an existing cell format in the workbook

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, format) ⇒ CellFormat

Returns a new instance of CellFormat.



9
10
11
12
# File 'lib/spreadsheetx/cell_format.rb', line 9

def initialize(id, format)
  @id = id
  @format = format
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



7
8
9
# File 'lib/spreadsheetx/cell_format.rb', line 7

def format
  @format
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/spreadsheetx/cell_format.rb', line 6

def id
  @id
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/spreadsheetx/cell_format.rb', line 14

def to_s
  id.to_s
end