Sha256: d0db580a9b90bcd8071e645d318f0bd52790484a2b28054af9ac98c551be95ca
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
require 'solidus_core' require 'solidus_mailchimp_sync/engine' require 'solidus_mailchimp_sync/util' module SolidusMailchimpSync mattr_accessor :api_key mattr_accessor :store_id mattr_accessor :enabled self.enabled = true mattr_accessor :auto_sync_enabled def self.data_center @data_center ||= begin if api_key.present? dc = api_key.split('-').last if dc.empty? || dc == api_key raise ArgumentError, "Mailchimp API key is expected to end in a hyphen and data center code, but was not found in `#{api_key}`, do not know how to proceed" end dc end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_mailchimp_sync-1.0.0.beta05 | lib/solidus_mailchimp_sync.rb |