Sha256: cbd443a83000f7bc7d9d879cc44d92716d99dd5f6eba645ba8188ec440b441d4

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

# frozen_string_literal: true

require "uri"
require "net/http"

require "breezy_pdf_lite/version"
require "breezy_pdf_lite/util"

# :nodoc
module BreezyPDFLite
  extend BreezyPDFLite::Util

  autoload :Client,        "breezy_pdf_lite/client"
  autoload :Intercept,     "breezy_pdf_lite/intercept"
  autoload :Interceptor,   "breezy_pdf_lite/interceptor"
  autoload :Middleware,    "breezy_pdf_lite/middleware"
  autoload :RenderRequest, "breezy_pdf_lite/render_request"

  BreezyPDFLiteError = Class.new(StandardError)

  mattr_accessor :secret_api_key
  @@secret_api_key = nil

  mattr_accessor :base_url
  @@base_url = "https://localhost:5001/"

  mattr_accessor :middleware_path_matchers
  @@middleware_path_matchers = [/\.pdf/]

  def self.setup
    yield self
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
breezy_pdf_lite-0.0.1 lib/breezy_pdf_lite.rb