Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Added support for creationdate and getlastmodified props
Browse files Browse the repository at this point in the history
  • Loading branch information
VivienBarousse committed Jul 11, 2011
1 parent 8c26195 commit fb5db9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/net/dav/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb5db9e

Please sign in to comment.