Class: AbideDevUtils::XCCDF::Parser::Objects::System
- Inherits:
-
ElementBase
- Object
- ElementBase
- AbideDevUtils::XCCDF::Parser::Objects::System
- Defined in:
- lib/abide_dev_utils/xccdf/parser/objects.rb
Overview
Class for XCCDF Ident System element
Instance Attribute Summary
Attributes inherited from ElementBase
#child_labels, #children, #link_labels
Instance Method Summary collapse
-
#initialize(element) ⇒ System
constructor
A new instance of System.
- #to_s ⇒ Object
Methods inherited from ElementBase
#add_link, #add_links, #all_values, #label, #method_missing, #respond_to_missing?, #xccdf_type, xmlns, xpath
Methods included from Helpers::XPath
Methods included from Helpers::ElementChildren
Methods included from DigestObject
#digest, #digest_equal?, #digest_similarity, #digestable_instance_variables, #exclude_from_digest, #labeled_self_digest, #non_compatible?, #normalize_exclusion, #sorted_digest_parts, #split_labeled_digest
Constructor Details
#initialize(element) ⇒ System
Returns a new instance of System.
393 394 395 396 397 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 393 def initialize(element) super @system = element.attributes['system'].value @text = element.text end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AbideDevUtils::XCCDF::Parser::Objects::ElementBase
Instance Method Details
#to_s ⇒ Object
399 400 401 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 399 def to_s [label, @system, @text].join(':') end |