Skip to content

Commit

Permalink
Merge pull request #39 from inferiorhumanorgans/iho_not_implemented_s…
Browse files Browse the repository at this point in the history
…tatus_fix

Ensure stubbed properties set the proper status code.
  • Loading branch information
chrisroberts committed Apr 14, 2012
2 parents a8b5499 + 509c405 commit bc8b5a8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/dav4rack/resource.rb
Expand Up @@ -140,22 +140,23 @@ def parent_exists?

# Return the creation time.
def creation_date
NotImplemented
raise NotImplemented
end

# Return the time of last modification.
def last_modified
NotImplemented
raise NotImplemented
end

# Set the time of last modification.
def last_modified=(time)
NotImplemented
# Is this correct?
raise NotImplemented
end

# Return an Etag, an unique hash value for this resource.
def etag
NotImplemented
raise NotImplemented
end

# Return the resource type. Generally only used to specify
Expand All @@ -166,12 +167,12 @@ def resource_type

# Return the mime type of this resource.
def content_type
NotImplemented
raise NotImplemented
end

# Return the size in bytes for this resource.
def content_length
NotImplemented
raise NotImplemented
end

# HTTP GET request.
Expand Down

0 comments on commit bc8b5a8

Please sign in to comment.