Class: DmarcParser::AuthResult

Inherits:
Object
  • Object
show all
Includes:
XmlHelper
Defined in:
lib/dmarc_parser/auth_result.rb

Constant Summary collapse

ATTRIBUTES =
[:type, :domain, :result, :selector]

Instance Method Summary collapse

Methods included from XmlHelper

#get_int, #get_text, #get_timestamp

Constructor Details

#initialize(node) ⇒ AuthResult

Returns a new instance of AuthResult.



14
15
16
17
18
19
20
# File 'lib/dmarc_parser/auth_result.rb', line 14

def initialize(node)
  @node = node
  self.type = node.name
  self.domain = get_text('domain')
  self.result = get_text('result')
  self.selector = get_text('selector')
end