Sha256: 92750efcf0d3fe2af4b187319e405ce55ba9389893f8e397ede3fa15b8bec99a

Contents?: true

Size: 858 Bytes

Versions: 4

Compression:

Stored size: 858 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.url_path = "api.example.com"
  #   end
  def self.configure(&block)
    yield @config ||= ApiClient::Configuration.new
  end

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

  configure do |config|
    config.path = ''
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
api-client-2.0.2 lib/api-client.rb
api-client-2.0.1 lib/api-client.rb
api-client-2.0.0 lib/api-client.rb
api-client-2.0.0.rc2 lib/api-client.rb