Class: OperaContacts::ContactCollection
- Inherits:
-
Object
- Object
- OperaContacts::ContactCollection
- Includes:
- Collection
- Defined in:
- lib/opera-contacts/contacts.rb
Overview
A parsed opera contacts file. Treat it as an Enumerable (.each, .map etc.)
Example of use:
collection = ContactCollection.new()
folder = ContactFolder.new(123, "folder-name")
collection << folder
collection.map{|i| i.name} # ["folder-name"]
collection.folders.map{|i| i.name} # ["folder-name"]
collection.contacts # []