Exception: Yt::Errors::MissingAuth
Instance Method Summary
collapse
#initialize, #kind, #reasons
Instance Method Details
#message ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/yt/errors/missing_auth.rb', line 6
def message
<<-MSG.gsub(/^ {8}/, '')
A request to YouTube API was sent without a valid authentication.
#{more_details}
MSG
end
|
#more_details ⇒ Object
14
15
16
17
18
19
20
21
22
|
# File 'lib/yt/errors/missing_auth.rb', line 14
def more_details
if scopes && authentication_url && redirect_uri
more_details_with_authentication_url
elsif scopes && user_code && verification_url
more_details_with_verification_url
else
more_details_without_url
end
end
|