class Rudder::Analytics

Constants

VERSION

Public Class Methods

new(options = {}) click to toggle source

Initializes a new instance of {Rudder::Analytics::Client}, to which all method calls are proxied.

@param options includes options that are passed down to

{Rudder::Analytics::Client#initialize}

@option options [Boolean] :stub (false) If true, requests don't hit the

server and are stubbed to be successful.
# File lib/rudder/analytics.rb, line 20
def initialize(options = {})
  Request.stub = options[:stub] if options.has_key?(:stub)
  @client = Rudder::Analytics::Client.new options
end

Public Instance Methods

method_missing(message, *args, &block) click to toggle source
Calls superclass method
# File lib/rudder/analytics.rb, line 25
def method_missing(message, *args, &block)
  if @client.respond_to? message
    @client.send message, *args, &block
  else
    super
  end
end
respond_to_missing?(method_name, include_private = false) click to toggle source
Calls superclass method
# File lib/rudder/analytics.rb, line 33
def respond_to_missing?(method_name, include_private = false)
  @client.respond_to?(method_name) || super
end