lib/imw/utils/has_uri.rb in imw-0.2.12 vs lib/imw/utils/has_uri.rb in imw-0.2.13
- old
+ new
@@ -77,9 +77,16 @@
# @return [String]
def user
@user ||= uri.user
end
+ # Returns the password associated with access to this URI.
+ #
+ # @return [String]
+ def password
+ @password ||= uri.password
+ end
+
# Return the fragment part of this resource's URI.
#
# Will likely be +nil+ for local resources.
#
# @return [String]