Class: Everton::Notebook
- Inherits:
-
Object
- Object
- Everton::Notebook
- Defined in:
- lib/everton.rb
Class Method Summary collapse
Class Method Details
.all ⇒ Object
137 138 139 |
# File 'lib/everton.rb', line 137 def self.all Remote.note_store.listNotebooks(Remote.access_token) end |
.create(name, params = {}) ⇒ Object
141 142 143 144 145 |
# File 'lib/everton.rb', line 141 def self.create(name, params = {}) n = Evernote::EDAM::Type::Notebook.new() n.name = name Remote.note_store.createNotebook(Remote.access_token, n) end |
.find(name) ⇒ Object
147 148 149 150 151 152 |
# File 'lib/everton.rb', line 147 def self.find(name) all.each do |n| return n if n.name == name end nil end |