Exception: DAV4Rack::LockFailure

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/dav4rack/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ LockFailure

Returns a new instance of LockFailure.



8
9
10
11
# File 'lib/dav4rack/resource.rb', line 8

def initialize(*args)
  super(*args)
  @path_status = {}
end

Instance Attribute Details

#path_statusObject (readonly)

Returns the value of attribute path_status.



7
8
9
# File 'lib/dav4rack/resource.rb', line 7

def path_status
  @path_status
end

Instance Method Details

#add_failure(path, status) ⇒ Object



13
14
15
# File 'lib/dav4rack/resource.rb', line 13

def add_failure(path, status)
  @path_status[path] = status
end