Class Google::Reader::Label
In: lib/google/reader/label.rb
Parent: Base

Methods

all   entries   name   name=   new   shared=  

Constants

VALID_KEYS = [:n, :c]

Attributes

count  [RW] 
shared  [R] 

Public Class methods

Usage:

  Google::Reader::Label.all

Usage:

  Google::Reader::Label.new('friends')
  Google::Reader::Label.new('friends', false)
  Google::Reader::Label.new('friends', false, 3)

Public Instance methods

Usage:

  Google::Reader::Label.new('friends').entries
  Google::Reader::Label.new('friends').entries(:all, :n => 25)
  Google::Reader::Label.new('friends').entries(:unread)
  Google::Reader::Label.new('friends').entries(:unread, :n => 25)

To use with continuations:

  unread      = Google::Reader::Label.new('friends').entries(:unread)
  next_unread = Google::Reader::Label.new('friends').entries(:unread, :c => unread.continuation)

The examples above would grab the first 15 unread entries and then using google reader‘s continuations, the next 15 unread after the first 15.

Returns name; converts broadcast label to shared to be consistent with google

Converts user/{user-id}/label/security to security.

[Validate]