Class: YouTubeIt

Inherits:
Object
  • Object
show all
Defined in:
lib/youtube_it.rb,
lib/youtube_it/client.rb,
lib/youtube_it/record.rb,
lib/youtube_it/parser.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/contact.rb,
lib/youtube_it/model/content.rb,
lib/youtube_it/request/error.rb,
lib/youtube_it/model/caption.rb,
lib/youtube_it/model/message.rb,
lib/youtube_it/model/comment.rb,
lib/youtube_it/model/activity.rb,
lib/youtube_it/model/playlist.rb,
lib/youtube_it/model/category.rb,
lib/youtube_it/model/thumbnail.rb,
lib/youtube_it/model/subscription.rb,
lib/youtube_it/request/remote_file.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, AuthenticationError, ChainIO, Client, Error, GreedyChainIO, OAuth2Client, OAuthClient, Record, ResourceNotFoundError, UploadError

Constant Summary

API_VERSION =
"2.1"
VERSION =
'2.4.0'

Class Method Summary (collapse)

Class Method Details

+ (Object) adapter



32
33
34
# File 'lib/youtube_it.rb', line 32

def self.adapter
  @adapter ||= Faraday.default_adapter
end

+ (Object) adapter=(faraday_adapter)



28
29
30
# File 'lib/youtube_it.rb', line 28

def self.adapter=(faraday_adapter)
  @adapter = faraday_adapter
end

+ (Object) esc(s)

:nodoc:



14
15
16
# File 'lib/youtube_it.rb', line 14

def self.esc(s) #:nodoc:
  CGI.escape(s.to_s)
end

+ (Object) logger

Get the logger for the library (by default will log to STDOUT). TODO: this is where we grab the Rails logger too



24
25
26
# File 'lib/youtube_it.rb', line 24

def self.logger
  @logger ||= create_default_logger
end

+ (Object) logger=(any_logger)

Set the logger for the library



19
20
21
# File 'lib/youtube_it.rb', line 19

def self.logger=(any_logger)
  @logger = any_logger
end