Sha256: 35b7626ba3e5ad80be4ea95012a3b5e09b1d45145365acf8a33269f34eb7feb4

Contents?: true

Size: 919 Bytes

Versions: 2

Compression:

Stored size: 919 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 = ''
    config.header = { 'Content-Type' => 'application/json' }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api-client-2.1.0 lib/api-client.rb
api-client-2.0.3 lib/api-client.rb