class Tilia::Dav::Locks::LockInfo

LockInfo class

An object of the LockInfo class holds all the information relevant to a single lock.

Constants

EXCLUSIVE

An exclusive lock

SHARED

A shared lock

TIMEOUT_INFINITE

A never expiring timeout

Attributes

created[RW]

UNIX Timestamp of when this lock was created

@var int

depth[RW]

Depth of lock, can be 0 or SabreDAVServer::DEPTH_INFINITY

owner[RW]

The owner of the lock

@var string

scope[RW]

Exclusive or shared lock

@var int

timeout[RW]

How long till the lock is expiring

@var int

token[RW]

The locktoken

@var string

uri[RW]

The uri this lock locks

TODO: This value is not always set @var mixed

Public Class Methods

new() click to toggle source

TODO: document

# File lib/tilia/dav/locks/lock_info.rb, line 53
def initialize
  @scope = EXCLUSIVE
  @depth = 0
end