lib/mailkick/service/mailchimp.rb in mailkick-0.1.1 vs lib/mailkick/service/mailchimp.rb in mailkick-0.1.2
- old
+ new
@@ -1,11 +1,10 @@
# https://github.com/amro/gibbon
module Mailkick
class Service
class Mailchimp < Mailkick::Service
-
def initialize(options = {})
@gibbon = ::Gibbon::API.new(options[:api_key] || ENV["MAILCHIMP_API_KEY"])
@list_id = options[:list_id] || ENV["MAILCHIMP_LIST_ID"]
end
@@ -35,9 +34,8 @@
time: ActiveSupport::TimeZone["UTC"].parse(record["timestamp_opt"] || record["date"]),
reason: reason
}
end
end
-
end
end
end