Class: YouTubeIt

Inherits:
Object
  • Object
show all
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 =
'2.1.4'

Class Method Summary collapse

Class Method Details

.adapterObject



40
41
42
# File 'lib/youtube_it.rb', line 40

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

.adapter=(faraday_adapter) ⇒ Object



36
37
38
# File 'lib/youtube_it.rb', line 36

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

.esc(s) ⇒ Object

:nodoc:



22
23
24
# File 'lib/youtube_it.rb', line 22

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

.loggerObject

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