1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
require_relative 'mailchimp3/endpoint'
require_relative 'mailchimp3/oauth'
require_relative 'mailchimp3/errors'
module MailChimp3
module_function
def new(*args)
Endpoint.new(*args)
end
def config
@config ||= Struct.new(:client_id, :client_secret).new
end
def oauth
@oauth ||= MailChimp3::OAuth.new
end
end