module RocketTracker
Constants
- VERSION
Public Class Methods
backend()
click to toggle source
# File lib/rocket_tracker.rb, line 39 def backend if config.api_key.blank? puts "[WARN] RocketTracker is not configured, please set api key" nil else @backend ||= Backend.new(config) end end
config()
click to toggle source
# File lib/rocket_tracker.rb, line 21 def config @config ||= Configuration.new end
configure() { |config| ... }
click to toggle source
# File lib/rocket_tracker.rb, line 25 def configure if block_given? yield(config) else raise 'RocketTracker.configure requires a block' end end
subscribe!()
click to toggle source
# File lib/rocket_tracker.rb, line 33 def subscribe! ActiveSupport::Notifications.subscribe('render') do |name, start, finish, id, payload| p name, start, finish, id end end