Class: ApolloDeploySignalSdk::VerificationRecordsResponse
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::VerificationRecordsResponse
- Defined in:
- lib/apollo_deploy_signal_sdk/types.rb
Overview
Schema type: VerificationRecordsResponse
Instance Attribute Summary collapse
- #bimi ⇒ DnsRecordResponse?
- #dkim ⇒ Array<DkimRecordResponse>
- #dmarc_recommended ⇒ DnsRecordResponse?
- #mail_from_mx ⇒ DnsRecordResponse
- #mail_from_spf ⇒ DnsRecordResponse
- #tracking_cname ⇒ DnsRecordResponse?
Class Method Summary collapse
-
.from_json(attributes) ⇒ VerificationRecordsResponse
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(dkim:, mail_from_mx:, mail_from_spf:, dmarc_recommended: nil, bimi: nil, tracking_cname: nil) ⇒ VerificationRecordsResponse
constructor
A new instance of VerificationRecordsResponse.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(dkim:, mail_from_mx:, mail_from_spf:, dmarc_recommended: nil, bimi: nil, tracking_cname: nil) ⇒ VerificationRecordsResponse
Returns a new instance of VerificationRecordsResponse.
4513 4514 4515 4516 4517 4518 4519 4520 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4513 def initialize(dkim: , mail_from_mx: , mail_from_spf: , dmarc_recommended: nil, bimi: nil, tracking_cname: nil) @dkim = dkim @mail_from_mx = mail_from_mx @mail_from_spf = mail_from_spf @dmarc_recommended = dmarc_recommended @bimi = bimi @tracking_cname = tracking_cname end |
Instance Attribute Details
#bimi ⇒ DnsRecordResponse?
4508 4509 4510 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4508 def bimi @bimi end |
#dkim ⇒ Array<DkimRecordResponse>
4500 4501 4502 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4500 def dkim @dkim end |
#dmarc_recommended ⇒ DnsRecordResponse?
4506 4507 4508 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4506 def dmarc_recommended @dmarc_recommended end |
#mail_from_mx ⇒ DnsRecordResponse
4502 4503 4504 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4502 def mail_from_mx @mail_from_mx end |
#mail_from_spf ⇒ DnsRecordResponse
4504 4505 4506 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4504 def mail_from_spf @mail_from_spf end |
#tracking_cname ⇒ DnsRecordResponse?
4510 4511 4512 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4510 def tracking_cname @tracking_cname end |
Class Method Details
.from_json(attributes) ⇒ VerificationRecordsResponse
Create an instance from a parsed JSON hash.
4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4537 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( dkim: attributes.key?("dkim") ? attributes["dkim"] : attributes[:dkim], mail_from_mx: attributes.key?("mailFromMx") ? attributes["mailFromMx"] : attributes[:mail_from_mx], mail_from_spf: attributes.key?("mailFromSpf") ? attributes["mailFromSpf"] : attributes[:mail_from_spf], dmarc_recommended: attributes.key?("dmarcRecommended") ? attributes["dmarcRecommended"] : attributes[:dmarc_recommended], bimi: attributes.key?("bimi") ? attributes["bimi"] : attributes[:bimi], tracking_cname: attributes.key?("trackingCname") ? attributes["trackingCname"] : attributes[:tracking_cname], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4523 def to_h { dkim: @dkim, mail_from_mx: @mail_from_mx, mail_from_spf: @mail_from_spf, dmarc_recommended: @dmarc_recommended, bimi: @bimi, tracking_cname: @tracking_cname, }.compact end |