class Tubeclip

TODO

* self atom feed
* alternate youtube watch url
* comments feedLink

Constants

API_VERSION
VERSION

Public Class Methods

adapter() click to toggle source
# File lib/tubeclip.rb, line 32
def self.adapter
  @adapter ||= Faraday.default_adapter
end
adapter=(faraday_adapter) click to toggle source
# File lib/tubeclip.rb, line 28
def self.adapter=(faraday_adapter)
  @adapter = faraday_adapter
end
logger() click to toggle source

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

# File lib/tubeclip.rb, line 24
def self.logger
  @logger ||= create_default_logger
end
logger=(any_logger) click to toggle source

Set the logger for the library

# File lib/tubeclip.rb, line 19
def self.logger=(any_logger)
  @logger = any_logger
end

Private Class Methods

create_default_logger() click to toggle source
# File lib/tubeclip.rb, line 46
def self.create_default_logger
  logger = Logger.new(STDOUT)
  logger.level = Logger::DEBUG
  logger
end