Module: AnalyticsRuby::ClassMethods
- Included in:
- AnalyticsRuby
- Defined in:
- lib/analytics-ruby.rb
Instance Method Summary collapse
- #alias(options) ⇒ Object
- #flush ⇒ Object
- #group(options) ⇒ Object
- #identify(options) ⇒ Object
-
#init(options = {}) ⇒ Object
By default use a single client for the module.
- #initialized? ⇒ Boolean
- #page(options) ⇒ Object
- #screen(options) ⇒ Object
- #track(options) ⇒ Object
Instance Method Details
#alias(options) ⇒ Object
21 22 23 24 |
# File 'lib/analytics-ruby.rb', line 21 def alias() return false unless @client @client.alias end |
#flush ⇒ Object
41 42 43 44 |
# File 'lib/analytics-ruby.rb', line 41 def flush return false unless @client @client.flush end |
#group(options) ⇒ Object
26 27 28 29 |
# File 'lib/analytics-ruby.rb', line 26 def group() return false unless @client @client.group end |
#identify(options) ⇒ Object
16 17 18 19 |
# File 'lib/analytics-ruby.rb', line 16 def identify() return false unless @client @client.identify end |
#init(options = {}) ⇒ Object
By default use a single client for the module
7 8 9 |
# File 'lib/analytics-ruby.rb', line 7 def init( = {}) @client = AnalyticsRuby::Client.new end |
#initialized? ⇒ Boolean
46 47 48 |
# File 'lib/analytics-ruby.rb', line 46 def initialized? !!@client end |
#page(options) ⇒ Object
31 32 33 34 |
# File 'lib/analytics-ruby.rb', line 31 def page() return false unless @client @client.page end |
#screen(options) ⇒ Object
36 37 38 39 |
# File 'lib/analytics-ruby.rb', line 36 def screen() return false unless @client @client.screen end |
#track(options) ⇒ Object
11 12 13 14 |
# File 'lib/analytics-ruby.rb', line 11 def track() return false unless @client @client.track end |