Sha256: 74420275c065fa55820e16814758134670f8c7bba1276b76359d99331d69570e
Contents?: true
Size: 562 Bytes
Versions: 5
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module Pdfmonkey class Configuration attr_accessor :host attr_accessor :namespace attr_accessor :private_key attr_accessor :user_agent def initialize @host = 'https://api.pdfmonkey.io' @namespace = 'api/v1' @private_key = ENV['PDFMONKEY_PRIVATE_KEY'] @user_agent = 'Ruby' end end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield configuration end end
Version data entries
5 entries across 5 versions & 1 rubygems