Class: DAV4Rack::Carddav::AddressbookCollectionResource
- Inherits:
-
Resource
- Object
- Resource
- Resource
- DAV4Rack::Carddav::AddressbookCollectionResource
- Defined in:
- lib/dav4rack_ext/carddav/resources/addressbook_collection_resource.rb
Constant Summary
Constants inherited from Resource
Resource::CARDAV_NS, Resource::PRIVILEGES
Instance Method Summary collapse
Methods inherited from Resource
#current_user, #get_property, #initialize, #is_self?, #properties, #router_params, #setup, #user_agent
Methods included from Helpers::Properties
Constructor Details
This class inherits a constructor from DAV4Rack::Carddav::Resource
Instance Method Details
#children ⇒ Object
14 15 16 17 18 |
# File 'lib/dav4rack_ext/carddav/resources/addressbook_collection_resource.rb', line 14 def children current_user.all_addressbooks.map do |book| child(AddressbookResource, book) end end |
#collection? ⇒ Boolean
10 11 12 |
# File 'lib/dav4rack_ext/carddav/resources/addressbook_collection_resource.rb', line 10 def collection? true end |
#exist? ⇒ Boolean
6 7 8 |
# File 'lib/dav4rack_ext/carddav/resources/addressbook_collection_resource.rb', line 6 def exist? true end |