Class: OperaContacts::ContactFolder
- Includes:
- Collection
- Defined in:
- lib/opera-contacts/contacts.rb
Overview
A folder which can contain Contact and ContactFolder (use Enumerable functions like .map). Type of Item.
Example of use:
folder = ContactFolder.new(321, "folder-name")
contact = Contact.new(123, "contact-name")
folder << contact
folder.map{|i| i.name} # ["contact-name"]
collection.contacts.map{|i| i.name} # ["contact-name"]
collection.folders # []
Instance Attribute Summary
Attributes included from Collection
Attributes inherited from Item
#created, #description, #id, #name
Method Summary
Methods included from Collection
#<<, #contacts, #each, #folders
Methods inherited from Item
Constructor Details
This class inherits a constructor from OperaContacts::Item