class Yt::Models::Configuration

Provides an object to store global configuration settings.

This class is typically not used directly, but by calling {Yt::Config#configure Yt.configure}, which creates and updates a single instance of {Yt::Models::Configuration}.

@example Set the API client id/secret for a web-client YouTube app:

Yt.configure do |config|
  config.client_id = 'ABCDEFGHIJ1234567890'
  config.client_secret = 'ABCDEFGHIJ1234567890'
end

@see Yt::Config for more examples.

An alternative way to set global configuration settings is by storing them in the following environment variables:

In case both methods are used together, {Yt::Config#configure Yt.configure} takes precedence.

@example Set the API client id/secret for a web-client YouTube app:

ENV['YT_CLIENT_ID'] = 'ABCDEFGHIJ1234567890'
ENV['YT_CLIENT_SECRET'] = 'ABCDEFGHIJ1234567890'