Method: Ever2boost::Note#initialize
- Defined in:
- lib/ever2boost/note.rb
#initialize(title: nil, content: nil, notebook_guid: nil, output_dir: nil) ⇒ Note
Returns a new instance of Note.
7 8 9 10 11 12 13 |
# File 'lib/ever2boost/note.rb', line 7 def initialize(title: nil, content: nil, notebook_guid: nil, output_dir: nil) @title = title @content = MdConverter.convert(content) @notebook_guid = notebook_guid @file_name = SecureRandom.hex(DEFAULT_BYTES_NUMBER) @output_dir = output_dir end |