Class: DAV4Rack::Carddav::PrincipalResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/dav4rack_ext/carddav/resources/principal_resource.rb

Constant Summary

Constants inherited from Resource

Resource::CARDAV_NS, Resource::PRIVILEGES

Instance Method Summary collapse

Methods inherited from Resource

#children, #current_user, #get_property, #initialize, #is_self?, #properties, #router_params, #setup, #user_agent

Methods included from Helpers::Properties

#define_properties, extended

Constructor Details

This class inherits a constructor from DAV4Rack::Carddav::Resource

Instance Method Details

#collection?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/dav4rack_ext/carddav/resources/principal_resource.rb', line 10

def collection?
  true
end

#exist?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/dav4rack_ext/carddav/resources/principal_resource.rb', line 6

def exist?
  (path == '') || (path == '/')
end