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.



4
5
6
7
8
# File 'lib/keepr/journal_export.rb', line 4

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

Instance Method Details

#to_file(filename) ⇒ Object



14
15
16
# File 'lib/keepr/journal_export.rb', line 14

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

#to_sObject



10
11
12
# File 'lib/keepr/journal_export.rb', line 10

def to_s
  export.to_s
end