Class: Everlog::Dom::Module::Evernote

Inherits:
Everlog::Dom::Module show all
Defined in:
lib/everlog/dom/module/evernote.rb

Class Method Summary collapse

Class Method Details

.publish(title, content, output) ⇒ Object



3
4
5
6
7
# File 'lib/everlog/dom/module/evernote.rb', line 3

def self.publish(title, content, output)
  config = Dom::Entity::Config.evernote
  is_sandbox = output != 'production'
  Dom::Repository::Evernote.new(is_sandbox, config).save(title, content)
end