Sha256: f0e41914038de594ee8a0de9e8eb407a1630a4146161beaaf9a68547fd71ae35

Contents?: true

Size: 922 Bytes

Versions: 2

Compression:

Stored size: 922 Bytes

Contents

require 'api-client/version'

# High Level Namespace of the library ApiClient.
module ApiClient
  autoload :Exceptions, 'api-client/exceptions'
  autoload :Errors, 'api-client/errors'
  autoload :Configuration, 'api-client/configuration'
  autoload :Base, 'api-client/base'
  autoload :Collection, 'api-client/collection'
  autoload :ClassMethods, 'api-client/class_methods'
  autoload :InstanceMethods, 'api-client/instance_methods'
  autoload :Dispatcher, 'api-client/dispatcher'
  autoload :Parser, 'api-client/parser'

  # Configures global settings
  #   ApiClient.configure do |config|
  #     config.path = "api.example.com"
  #   end
  def self.configure(&block)
    yield @config ||= ApiClient::Configuration.new
  end

  # Global settings for ApiClient
  def self.config
    @config
  end

  # Default Settings
  configure do |config|
    config.path = ''
    config.header = {}
    config.mock = false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api-client-2.4.0 lib/api-client.rb
api-client-2.3.0 lib/api-client.rb