Sha256: 0d4b643c239cb1b5894a8c5c16f4426830ca53bdcb89502719e8b6b732b1fe1c

Contents?: true

Size: 523 Bytes

Versions: 9

Compression:

Stored size: 523 Bytes

Contents

module Digicert
  class Configuration
    attr_accessor :api_key, :api_host, :base_path, :response_type, :debug_mode

    def initialize
      @api_host = "www.digicert.com"
      @base_path = "services/v2"
      @response_type = :object
      @debug_mode = false
    end

    def response_klass
      response_klasses[response_type.to_sym] || ResponseObject
    end

    def debug_mode?
      debug_mode == true
    end

    private

    def response_klasses
      { hash: Hash, object: ResponseObject }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
digicert-1.0.0 lib/digicert/configuration.rb
digicert-0.5.0 lib/digicert/configuration.rb
digicert-0.4.1 lib/digicert/configuration.rb
digicert-0.4.0 lib/digicert/configuration.rb
digicert-0.3.1 lib/digicert/configuration.rb
digicert-0.3.0 lib/digicert/configuration.rb
digicert-0.2.0 lib/digicert/configuration.rb
digicert-0.1.2 lib/digicert/configuration.rb
digicert-0.1.1 lib/digicert/configuration.rb