Class: YTAnalytics
- Inherits:
-
Object
- Object
- YTAnalytics
- Defined in:
- lib/yt_analytics.rb,
lib/yt_analytics/client.rb,
lib/yt_analytics/parser.rb,
lib/yt_analytics/version.rb,
lib/yt_analytics/model/temporal_metrics.rb,
lib/yt_analytics/request/authentication.rb
Defined Under Namespace
Modules: Logging, Model, Parser, YTAuth Classes: Client, Error, OAuth2Client
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
- .adapter ⇒ Object
- .adapter=(faraday_adapter) ⇒ Object
-
.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
.adapter ⇒ Object
40 41 42 |
# File 'lib/yt_analytics.rb', line 40 def self.adapter @adapter ||= Faraday.default_adapter end |
.adapter=(faraday_adapter) ⇒ Object
36 37 38 |
# File 'lib/yt_analytics.rb', line 36 def self.adapter=(faraday_adapter) @adapter = faraday_adapter end |
.esc(s) ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/yt_analytics.rb', line 22 def self.esc(s) #:nodoc: CGI.escape(s.to_s) 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/yt_analytics.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/yt_analytics.rb', line 27 def self.logger=(any_logger) @logger = any_logger end |