module YM
Constants
- DEFAULTS
- VERSION
- YMR
Public Class Methods
add_counter(counter)
click to toggle source
# File lib/yandex-metrika-rails.rb, line 32 def add_counter(counter) @options ||= {} @options[counter] = true end
counter()
click to toggle source
# File lib/yandex-metrika-rails.rb, line 12 def counter @counter || nil end
counter=(counter)
click to toggle source
# File lib/yandex-metrika-rails.rb, line 16 def counter=(counter) @counter = counter end
invalid_counter?()
click to toggle source
# File lib/yandex-metrika-rails.rb, line 24 def invalid_counter? counter.nil? || counter == "" end
options()
click to toggle source
# File lib/yandex-metrika-rails.rb, line 37 def options @options ||= DEFAULTS end
reset!()
click to toggle source
# File lib/yandex-metrika-rails.rb, line 41 def reset! @options = nil end
set_counters(*counters)
click to toggle source
# File lib/yandex-metrika-rails.rb, line 28 def set_counters(*counters) counters.each{|c| add_counter(c)} end
valid_counter?()
click to toggle source
# File lib/yandex-metrika-rails.rb, line 20 def valid_counter? !invalid_counter? end