lib/apidiesel/api.rb in apidiesel-0.12 vs lib/apidiesel/api.rb in apidiesel-0.13
- old
+ new
@@ -40,11 +40,11 @@
# Combined getter/setter for this actions URL
#
# Falls back to the Api setting if blank.
#
- # @param [String] value
+ # @param [String] base_url
def url(base_url = nil)
if base_url
config[:url] = URI.parse(base_url)
else
config[:url]
@@ -66,10 +66,11 @@
# Combined getter/setter for the HTTP Basic Auth
#
# Falls back to the Api setting if blank.
#
- # @param [String] value
+ # @param [String] username
+ # @param [String] password
def http_basic_auth(username = nil, password = nil)
if username && password
config[:http_basic_username] = username
config[:http_basic_password] = password
else