Classes to work with Pocket.
Pocket Classes on RubyGems.org
gem install pocket-classes
gem 'pocket-classes', '~> 0.0.3'
item = Item.new
item = Item.new
items = []
items.push(item)
tagCollection = TagCollection.new(items)
tags = tagCollection.getTags
TagCollection has a tags property.
tags property is a Hash.
Keys are tag terms (eg. 'history', 'ruby', 'jokes')
tag = tags['term1']
Tag is a Hash that contains useful counters.
tag['total']: Total of articles tagged with current tag
tag['archived']: Total of archived articles tagged with current tag
tag['unread']: Total of unread articles tagged with current tag. Note that this is complementary to 'archived' count.