Cassandane::TestEntity::DataType::AddressBook

NAME

Cassandane::TestEntity::DataType::AddressBook - the AddressBook entity datatype

default

my $abook = $user->addressbooks->default;

This acts like ->get, returning an address book instance, but finds and returns the address book that has a true isDefault.

INSTANCE METHODS

create_card

my $card = $abook->create_card({ ... });

This method creates a ContactCard instance that's in $abook and no other address books.

create_card_group

my $card = $abook->create_card_group({ ... });

This method is identical to create_card, but will always set the kindproperty to "group".