Sha256: 0292a658667b37d3eacc51a1efa41a5763a14ca54f183b38e8476952f7c72053

Contents?: true

Size: 816 Bytes

Versions: 3

Compression:

Stored size: 816 Bytes

Contents

require 'faraday'
require 'faraday_middleware'

require 'majestic/api/version'

if !String.instance_methods(false).include?(:underscore)
  require 'majestic/api/extensions/string'
end

require 'majestic/api/configuration'

require 'majestic/api/logger'
require 'majestic/api/exceptions'

require 'majestic/api/response'
require 'majestic/api/item_info_response'
require 'majestic/api/item_info'
require 'majestic/api/client'

require 'majestic/api/railtie' if defined?(Rails)

module Majestic
  module Api
    class << self
      attr_writer :configuration
    end

    def self.configuration
      @configuration ||= ::Majestic::Api::Configuration.new
    end

    def self.reset
      @configuration = ::Majestic::Api::Configuration.new
    end

    def self.configure
      yield(configuration)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
majestic-api-1.4.2 lib/majestic/api.rb
majestic-api-1.4.1 lib/majestic/api.rb
majestic-api-1.4.0 lib/majestic/api.rb