class DayoneToQuiver::API::DayoneEntryToQuiverNote
Attributes
result[R]
Public Class Methods
new(dayone_file, output_path)
click to toggle source
# File lib/dayone_to_quiver/api.rb, line 8 def initialize(dayone_file, output_path) @input_file = dayone_file @output_path = output_path end
Public Instance Methods
exec()
click to toggle source
# File lib/dayone_to_quiver/api.rb, line 13 def exec @entry = ::DayoneToQuiver::DayoneEntry.new(@input_file) @note = ::QuiverToolbox::Note.new(@entry.to_quiver_hash) @note.notebook_path = @output_path @converter = ::DayoneToQuiver::Converter.new(@entry, @note) @result = @converter.note.file_name_with_path if @converter.store self end