module BitBucket::Authorization
Public Instance Methods
authenticated?()
click to toggle source
Check whether authentication credentials are present
# File lib/bitbucket_rest_api/authorization.rb, line 7 def authenticated? basic_authed? || oauth_token? end
authentication()
click to toggle source
Select authentication parameters
# File lib/bitbucket_rest_api/authorization.rb, line 17 def authentication if basic_auth? { :basic_auth => basic_auth } elsif login? && password? { :login => login, :password => password } else { } end end
basic_authed?()
click to toggle source
Check whether basic authentication credentials are present
# File lib/bitbucket_rest_api/authorization.rb, line 12 def basic_authed? basic_auth? || (login? && password?) end