class Segment::Analytics

Constants

VERSION

Public Class Methods

new(options = {}) click to toggle source
# File lib/segment/analytics.rb, line 12
def initialize options = {}
  Request.stub = options[:stub]
  @client = Segment::Analytics::Client.new options
end

Public Instance Methods

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