Class: Digicert::EmailValidation

Inherits:
Base
  • Object
show all
Includes:
Actions::All
Defined in:
lib/digicert/email_validation.rb

Class Method Summary collapse

Methods included from Actions::All

#all

Methods included from Actions::Base

#included

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Digicert::Base

Class Method Details

.all(order_id:, **filter_params) ⇒ Object



7
8
9
# File 'lib/digicert/email_validation.rb', line 7

def self.all(order_id:, **filter_params)
  new(order_id: order_id, params: filter_params).all
end

.valid?(token:, email:) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
15
16
17
18
19
# File 'lib/digicert/email_validation.rb', line 11

def self.valid?(token:, email:)
  response = Digicert::Request.new(
    :put,
    ["email-validation", token].join("/"),
    **{ params: { email: email } },
  ).run

  response.code.to_i == 204
end