class Dmarcurator::Parser::Record

Parsed XML of a record

Public Instance Methods

auth_dkim_domain() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 34
def auth_dkim_domain
  doc.locate("auth_results/dkim/domain")[0]&.text
end
auth_dkim_result() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 38
def auth_dkim_result
  doc.locate("auth_results/dkim/result")[0]&.text
end
auth_dkim_selector() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 42
def auth_dkim_selector
  doc.locate("auth_results/dkim/selector")[0]&.text
end
auth_spf_domain() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 46
def auth_spf_domain
  doc.locate("auth_results/spf/domain")[0].text
end
auth_spf_result() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 50
def auth_spf_result
  doc.locate("auth_results/spf/result")[0].text
end
count() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 10
def count
  doc.locate("row/count")[0].text.to_i
end
disposition() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 14
def disposition
  doc.locate("row/policy_evaluated/disposition")[0].text
end
envelope_to() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 26
def envelope_to
  doc.locate("identifiers/envelope_to")[0]&.text
end
header_from() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 30
def header_from
  doc.locate("identifiers/header_from")[0].text
end
policy_result_dkim() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 18
def policy_result_dkim
  doc.locate("row/policy_evaluated/dkim")[0].text
end
policy_result_spf() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 22
def policy_result_spf
  doc.locate("row/policy_evaluated/spf")[0].text
end
source_ip() click to toggle source
# File lib/dmarcurator/parser/record.rb, line 6
def source_ip
  doc.locate("row/source_ip")[0].text
end