class Workarea::Listrak::BogusEmailApi::ProxyClient

Attributes

client[R]
client_name[R]

Public Class Methods

new(client_name, client) click to toggle source
# File lib/workarea/listrak/bogus_email_api/proxy_client.rb, line 7
def initialize(client_name, client)
  @client_name = client_name
  @client = client
end

Public Instance Methods

method_missing(method, *args) click to toggle source
Calls superclass method
# File lib/workarea/listrak/bogus_email_api/proxy_client.rb, line 12
def method_missing(method, *args)
  if client.respond_to?(method)
    if BogusEmailApi.store_requests
      BogusEmailApi.requests[client_name][method] << args
    end
    client.send(method, *args)
  else
    super
  end
end
respond_to_missing?(method, include_all = false) click to toggle source
Calls superclass method
# File lib/workarea/listrak/bogus_email_api/proxy_client.rb, line 23
def respond_to_missing?(method, include_all = false)
  client.respond_to?(method) || super
end