Class: Keepr::JournalExport

Inherits:
Object
  • Object
show all
Defined in:
lib/keepr/journal_export.rb

Instance Method Summary collapse

Constructor Details

#initialize(journals, header_options = {}, &block) ⇒ JournalExport

Returns a new instance of JournalExport.



2
3
4
5
6
# File 'lib/keepr/journal_export.rb', line 2

def initialize(journals, header_options={}, &block)
  @journals = journals
  @header_options = header_options
  @block = block
end

Instance Method Details

#to_file(filename) ⇒ Object



12
13
14
# File 'lib/keepr/journal_export.rb', line 12

def to_file(filename)
  export.to_file(filename)
end

#to_sObject



8
9
10
# File 'lib/keepr/journal_export.rb', line 8

def to_s
  export.to_s
end