Class: Spreadsheet::Note

Inherits:
Object
  • Object
show all
Includes:
Encodings
Defined in:
lib/spreadsheet/note.rb

Overview

The Note class is a Subclass of String and represents a comment/note/annotation someone made to a cell.

Interesting Attributes

#author

The name of the author who wrote the note

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNote

Returns a new instance of Note.



14
15
16
17
18
19
20
21
# File 'lib/spreadsheet/note.rb', line 14

def initialize
  @author = nil
  @length = 0
  @objID  = nil
  @row    = -1
  @col    = -1
  @text   = ""
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



13
14
15
# File 'lib/spreadsheet/note.rb', line 13

def author
  @author
end

#colObject

Returns the value of attribute col.



13
14
15
# File 'lib/spreadsheet/note.rb', line 13

def col
  @col
end

#lengthObject

Returns the value of attribute length.



13
14
15
# File 'lib/spreadsheet/note.rb', line 13

def length
  @length
end

#objIDObject

Returns the value of attribute objID.



13
14
15
# File 'lib/spreadsheet/note.rb', line 13

def objID
  @objID
end

#rowObject

Returns the value of attribute row.



13
14
15
# File 'lib/spreadsheet/note.rb', line 13

def row
  @row
end

#textObject

Returns the value of attribute text.



13
14
15
# File 'lib/spreadsheet/note.rb', line 13

def text
  @text
end