Class: Digicert::Configuration
- Inherits:
-
Object
- Object
- Digicert::Configuration
- Defined in:
- lib/digicert/configuration.rb
Instance Attribute Summary collapse
-
#api_host ⇒ Object
Returns the value of attribute api_host.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
-
#response_type ⇒ Object
Returns the value of attribute response_type.
Instance Method Summary collapse
- #debug_mode? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #response_klass ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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_host ⇒ Object
Returns the value of attribute api_host.
3 4 5 |
# File 'lib/digicert/configuration.rb', line 3 def api_host @api_host end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/digicert/configuration.rb', line 3 def api_key @api_key end |
#base_path ⇒ Object
Returns the value of attribute base_path.
3 4 5 |
# File 'lib/digicert/configuration.rb', line 3 def base_path @base_path end |
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
3 4 5 |
# File 'lib/digicert/configuration.rb', line 3 def debug_mode @debug_mode end |
#response_type ⇒ Object
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
16 17 18 |
# File 'lib/digicert/configuration.rb', line 16 def debug_mode? debug_mode == true end |
#response_klass ⇒ Object
12 13 14 |
# File 'lib/digicert/configuration.rb', line 12 def response_klass response_klasses[response_type.to_sym] || ResponseObject end |