Class: OperaContacts::ContactCollection

Inherits:
Object
  • Object
show all
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 # []

Instance Attribute Summary

Attributes included from Collection

#items

Method Summary

Methods included from Collection

#<<, #contacts, #each, #folders