Vulnerability::Output specs

This commit is contained in:
erwanlr
2013-03-22 18:25:17 +01:00
parent af4ecc4084
commit d937b20d79
5 changed files with 36 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ class WpUser < WpItem
def allowed_options; [:id, :login, :display_name, :password] end
# @return [ URI ] The uri to the auhor page
def uri
if id
return @uri.merge("?author=#{id}")
@@ -17,14 +18,17 @@ class WpUser < WpItem
end
end
# @param [ Wpuser ] other
def <=>(other)
id <=> other.id
end
# @param [ WpUser ] other
def ==(other)
self === other
end
# @param [ WpUser ] other
def ===(other)
id === other.id && login === other.login
end