Sha256: 90b7e9d79312fbc67bd4787f41b8d261064e83887c7f2abe5a01ec24422d673c

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 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_errors"
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

2 entries across 2 versions & 1 rubygems

Version Path
ractive_campaign-0.1.0 lib/active_campaign.rb
ractive_campaign-0.0.1 lib/active_campaign.rb