Sha256: 06458ea5b02d3e4c3163a782bc398fbe20ba1a9822d8c55b19f739e9bd632fdf

Contents?: true

Size: 766 Bytes

Versions: 4

Compression:

Stored size: 766 Bytes

Contents

# Common files
require 'docraptor/api_client'
require 'docraptor/api_error'
require 'docraptor/version'
require 'docraptor/configuration'

# Models
require 'docraptor/models/async_doc'
require 'docraptor/models/async_doc_status'
require 'docraptor/models/doc'
require 'docraptor/models/prince_options'

# APIs
require 'docraptor/api/doc_api'

module DocRaptor
  class << self
    # Customize default settings for the SDK using block.
    #   DocRaptor.configure do |config|
    #     config.username = "xxx"
    #     config.password = "xxx"
    #   end
    # If no block given, return the default Configuration object.
    def configure
      if block_given?
        yield(Configuration.default)
      else
        Configuration.default
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
docraptor-1.1.0 lib/docraptor.rb
docraptor-1.0.0 lib/docraptor.rb
docraptor-0.4.0 lib/docraptor.rb
docraptor-0.3.0 lib/docraptor.rb