Sha256: c1f588c68cdea2cf3a5a1463364d43f0998239f16bd1f225117360f5925cc9ad
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
module Evertils module Common module Entity class Tag < Entity::Base def find(name) @tag = nil tags = Tags.new.all tags.each do |tag| if tag.name == name.to_s @tag = tag end end @tag end def create(name) tag = ::Evernote::EDAM::Type::Tag.new tag.name = name @evernote.call(:createTag, tag) end def expunge(name) tag = find(name) @evernote.call(:expungeTag, tag.guid) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems