module Aggcat
Constants
- VERSION
Public Class Methods
client()
click to toggle source
# File lib/aggcat.rb, line 18 def client raise ArgumentError.new('set the client scope first by calling Aggcat.scope(customer_id)') unless defined?(@customer_id) @client end
scope(customer_id)
click to toggle source
# File lib/aggcat.rb, line 10 def scope(customer_id) if !defined?(@customer_id) || @customer_id != customer_id @customer_id = customer_id @client = Aggcat::Client.new(options.merge({customer_id: customer_id})) end @client end
Private Class Methods
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/aggcat.rb, line 25 def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end