class Zotero::Library

Attributes

collections[R]

Public Class Methods

new(user_id, key) click to toggle source
# File lib/zotero/library.rb, line 4
def initialize(user_id, key)
  @api = ::Zotero::Api.new(user_id, key)
end

Private Instance Methods

get_collections() click to toggle source
# File lib/zotero/library.rb, line 14
def get_collections
  @api.get('/collections/top').collect do |data|
    ::Zotero::Entities::Collection.new @api, data
  end
end