diff --git a/lib/net/dav/item.rb b/lib/net/dav/item.rb index 2bc0ff0..6053078 100644 --- a/lib/net/dav/item.rb +++ b/lib/net/dav/item.rb @@ -26,6 +26,14 @@ def contentlength @response./(".//x:getcontenttype", @namespaces).inner_text rescue nil end + def creationdate + Time.parse(@response./(".//x:creationdate", @namespaces).inner_text) + end + + def lastmodificationdate + Time.parse(@response./(".//x:getlastmodified", @namespaces).inner_text) + end + end # URI of item