Module: GameAnalytics
- Defined in:
- lib/game_analytics.rb,
lib/game_analytics/client.rb,
lib/game_analytics/common.rb,
lib/game_analytics/metric.rb,
lib/game_analytics/worker.rb,
lib/game_analytics/version.rb
Defined Under Namespace
Modules: Common Classes: Client, Metric, Worker
Constant Summary collapse
- VERSION =
'0.0.4'
Class Attribute Summary collapse
-
.disabled ⇒ Object
Returns the value of attribute disabled.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Class Attribute Details
.disabled ⇒ Object
Returns the value of attribute disabled.
12 13 14 |
# File 'lib/game_analytics.rb', line 12 def disabled @disabled end |
.logger ⇒ Object
Returns the value of attribute logger.
12 13 14 |
# File 'lib/game_analytics.rb', line 12 def logger @logger end |
.options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/game_analytics.rb', line 12 def end |
Class Method Details
.client ⇒ Object
21 22 23 |
# File 'lib/game_analytics.rb', line 21 def self.client @client ||= Client.new end |
.config(opts) ⇒ Object
15 16 17 18 19 |
# File 'lib/game_analytics.rb', line 15 def self.config(opts) = opts @logger = opts[:logger] || (const_defined?('Rails') ? Rails.logger : Logger.new(STDOUT)) @disabled = opts[:disabled] end |