Class: CSVPlusPlus::Writer::OpenDocument

Inherits:
Writer
  • Object
show all
Extended by:
T::Sig
Includes:
FileBackerUpper
Defined in:
lib/csv_plus_plus/writer/open_document.rb

Overview

A class that can output a Template to an Excel file

Instance Attribute Summary

Attributes inherited from Writer

#position

Instance Method Summary collapse

Methods included from FileBackerUpper

#backup_file

Constructor Details

#initialize(options, position) ⇒ OpenDocument

Returns a new instance of OpenDocument.

Parameters:



14
15
16
17
18
# File 'lib/csv_plus_plus/writer/open_document.rb', line 14

def initialize(options, position)
  super(position)

  @options = options
end

Instance Method Details

#write(template) ⇒ Object

write a template to an OpenDocument file



22
23
24
# File 'lib/csv_plus_plus/writer/open_document.rb', line 22

def write(template)
  # TODO
end

#write_backupObject

write a backup of the google sheet



28
29
30
# File 'lib/csv_plus_plus/writer/open_document.rb', line 28

def write_backup
  backup_file(@options)
end