Class: YouTubeIt
- Inherits:
-
Object
- Object
- YouTubeIt
- Defined in:
- lib/youtube_it.rb,
lib/youtube_it/client.rb,
lib/youtube_it/parser.rb,
lib/youtube_it/record.rb,
lib/youtube_it/version.rb,
lib/youtube_it/model/user.rb,
lib/youtube_it/model/video.rb,
lib/youtube_it/model/author.rb,
lib/youtube_it/model/rating.rb,
lib/youtube_it/model/comment.rb,
lib/youtube_it/model/contact.rb,
lib/youtube_it/model/content.rb,
lib/youtube_it/model/message.rb,
lib/youtube_it/model/activity.rb,
lib/youtube_it/model/category.rb,
lib/youtube_it/model/playlist.rb,
lib/youtube_it/model/thumbnail.rb,
lib/youtube_it/model/subscription.rb,
lib/youtube_it/request/base_search.rb,
lib/youtube_it/request/user_search.rb,
lib/youtube_it/request/video_search.rb,
lib/youtube_it/request/video_upload.rb,
lib/youtube_it/response/video_search.rb,
lib/youtube_it/request/standard_search.rb
Defined Under Namespace
Modules: Logging, Model, Parser, Request, Response, Upload Classes: AuthSubClient, ChainIO, Client, Error, GreedyChainIO, OAuth2Client, OAuthClient, Record
Constant Summary collapse
- VERSION =
'1.4.3'
Class Method Summary collapse
-
.esc(s) ⇒ Object
:nodoc:.
-
.logger ⇒ Object
Get the logger for the library (by default will log to STDOUT).
-
.logger=(any_logger) ⇒ Object
Set the logger for the library.
Class Method Details
.esc(s) ⇒ Object
:nodoc:
21 22 23 24 |
# File 'lib/youtube_it.rb', line 21 def self.esc(s) #:nodoc: # URI encodes correctly Unicode characters URI.encode(s.to_s.tr(' ','+')) end |
.logger ⇒ Object
Get the logger for the library (by default will log to STDOUT). TODO: this is where we grab the Rails logger too
32 33 34 |
# File 'lib/youtube_it.rb', line 32 def self.logger @logger ||= create_default_logger end |
.logger=(any_logger) ⇒ Object
Set the logger for the library
27 28 29 |
# File 'lib/youtube_it.rb', line 27 def self.logger=(any_logger) @logger = any_logger end |