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.1"
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.
11 12 13 |
# File 'lib/game_analytics.rb', line 11 def disabled @disabled end |
.logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/game_analytics.rb', line 11 def logger @logger end |
.options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/game_analytics.rb', line 11 def @options 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) @options = opts @logger = opts[:logger] || Rails.logger @disabled = opts[:disabled] end |