Class: DmarcParser::AuthResult
- Inherits:
-
Object
- Object
- DmarcParser::AuthResult
- Includes:
- XmlHelper
- Defined in:
- lib/dmarc_parser/auth_result.rb
Constant Summary collapse
- ATTRIBUTES =
[:type, :domain, :result, :selector]
Instance Method Summary collapse
-
#initialize(node) ⇒ AuthResult
constructor
A new instance of AuthResult.
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 |