Class: Digicert::DuplicateCertificateFinder
- Inherits:
-
Object
- Object
- Digicert::DuplicateCertificateFinder
- Defined in:
- lib/digicert/duplicate_certificate_finder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(request_id:) ⇒ DuplicateCertificateFinder
constructor
A new instance of DuplicateCertificateFinder.
Constructor Details
#initialize(request_id:) ⇒ DuplicateCertificateFinder
Returns a new instance of DuplicateCertificateFinder.
3 4 5 |
# File 'lib/digicert/duplicate_certificate_finder.rb', line 3 def initialize(request_id:) @request_id = request_id end |
Class Method Details
.find_by(request_id:) ⇒ Object
15 16 17 |
# File 'lib/digicert/duplicate_certificate_finder.rb', line 15 def self.find_by(request_id:) new(request_id: request_id).find end |
Instance Method Details
#find ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/digicert/duplicate_certificate_finder.rb', line 7 def find certificate_by_date_created || raise( Digicert::Errors::RequestError.new( request: "The request is still pending, needs an approval first!", ), ) end |