Class: OperaContacts::ContactFolder

Inherits:
Item
  • Object
show all
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

#items

Attributes inherited from Item

#created, #description, #id, #name

Method Summary

Methods included from Collection

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

Methods inherited from Item

#initialize

Constructor Details

This class inherits a constructor from OperaContacts::Item