Class: MailAuth::DmarcResult

Inherits:
Data
  • Object
show all
Defined in:
lib/mailauth/result.rb

Overview

fail says the check failed; policy says what the domain asked us to do about it. Folding those together is a consumer's decision, not ours.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, policy: nil, pct: nil, alignment: nil, record: nil) ⇒ DmarcResult

Returns a new instance of DmarcResult.



17
18
19
# File 'lib/mailauth/result.rb', line 17

def initialize(status:, policy: nil, pct: nil, alignment: nil, record: nil)
  super
end

Instance Attribute Details

#alignmentObject (readonly)

Returns the value of attribute alignment

Returns:

  • (Object)

    the current value of alignment



16
17
18
# File 'lib/mailauth/result.rb', line 16

def alignment
  @alignment
end

#pctObject (readonly)

Returns the value of attribute pct

Returns:

  • (Object)

    the current value of pct



16
17
18
# File 'lib/mailauth/result.rb', line 16

def pct
  @pct
end

#policyObject (readonly)

Returns the value of attribute policy

Returns:

  • (Object)

    the current value of policy



16
17
18
# File 'lib/mailauth/result.rb', line 16

def policy
  @policy
end

#recordObject (readonly)

Returns the value of attribute record

Returns:

  • (Object)

    the current value of record



16
17
18
# File 'lib/mailauth/result.rb', line 16

def record
  @record
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



16
17
18
# File 'lib/mailauth/result.rb', line 16

def status
  @status
end