Sha256: fb88b06e0f551df76a76d1f4bcfd8026def43608f3b0298689e29e5d4f909505

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

require "dry-configurable"

require "faraday"
require "faraday_middleware"

require "active_model"
# require "active_support"
require "active_support/inflector"

require "active_campaign/version"
require "active_campaign/parser"
require "active_campaign/api_attributes"
require "active_campaign/api"
require "active_campaign/api_http"

module ActiveCampaign # :nodoc:
  extend Dry::Configurable

  RESOURCE_MODELS = Dir[File.expand_path("active_campaign/models/**/*.rb", File.dirname(__FILE__))].freeze

  RESOURCE_MODELS.each do |f|
    autoload File.basename(f, ".rb").camelcase.to_sym, f
  end

  setting :api_url
  setting :api_key
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ractive_campaign-0.1.6 lib/active_campaign.rb
ractive_campaign-0.1.5 lib/active_campaign.rb
ractive_campaign-0.1.4 lib/active_campaign.rb
ractive_campaign-0.1.3 lib/active_campaign.rb
ractive_campaign-0.1.2 lib/active_campaign.rb
ractive_campaign-0.1.1 lib/active_campaign.rb