Class: Digicert::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/digicert/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/digicert/configuration.rb', line 5

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

Instance Attribute Details

#api_hostObject

Returns the value of attribute api_host.



3
4
5
# File 'lib/digicert/configuration.rb', line 3

def api_host
  @api_host
end

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/digicert/configuration.rb', line 3

def api_key
  @api_key
end

#base_pathObject

Returns the value of attribute base_path.



3
4
5
# File 'lib/digicert/configuration.rb', line 3

def base_path
  @base_path
end

#debug_modeObject

Returns the value of attribute debug_mode.



3
4
5
# File 'lib/digicert/configuration.rb', line 3

def debug_mode
  @debug_mode
end

#response_typeObject

Returns the value of attribute response_type.



3
4
5
# File 'lib/digicert/configuration.rb', line 3

def response_type
  @response_type
end

Instance Method Details

#debug_mode?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/digicert/configuration.rb', line 16

def debug_mode?
  debug_mode == true
end

#response_klassObject



12
13
14
# File 'lib/digicert/configuration.rb', line 12

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