Class: Purest::Cert
- Inherits:
-
APIMethods
- Object
- Rest
- APIMethods
- Purest::Cert
- Defined in:
- lib/purest/cert.rb
Constant Summary collapse
- GET_PARAMS =
i[certificate common_name country email intermediate_certificate locality organization organizational_unit state].freeze
Instance Method Summary collapse
Methods inherited from APIMethods
#append_path, #create, #delete
Methods inherited from Rest
access_method?, #authenticated?, #concat_url, #initialize, #logout, method_missing, #use_named_parameter
Constructor Details
This class inherits a constructor from Purest::Rest
Instance Method Details
#get(options = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/purest/cert.rb', line 11 def get( = nil) if !.nil? && [:csr] super(, 'cert/certificate_signing_request', GET_PARAMS) else super(, 'cert', GET_PARAMS) end end |
#update(options = nil) ⇒ Object
19 20 21 |
# File 'lib/purest/cert.rb', line 19 def update( = nil) super(, 'cert') end |