Class Blackbook
In: lib/blackbook.rb
Parent: Object

Methods

export   find_importer   get   get   new   register  

Included Modules

::Singleton

Classes and Modules

Module Blackbook::Exporter
Module Blackbook::Importer
Class Blackbook::BadCredentialsError
Class Blackbook::BlackbookError

Constants

VERSION = '1.0.4'

Attributes

exporters  [RW] 
importers  [RW] 

Public Class methods

Public Instance methods

Sends the vcards from the import to whatever is handling the export

Searches registered importers for one that will handle the given options

Fetches contacts from various services or filetypes. The default is to return an array of hashes - Blackbook‘s internal format

Handles several different calls:

 get( :username => 'something@gmail.com', :password => 'whatever' )
 get( :as => :xml, :username => 'something@gmail.com', :password => 'whatever' )
 get( :csv, :file => #<File:/path/to/file.csv> )

[Validate]