Class: AbideDevUtils::XCCDF::Parser::Objects::Platform
- Inherits:
-
ElementBase
- Object
- ElementBase
- AbideDevUtils::XCCDF::Parser::Objects::Platform
- Defined in:
- lib/abide_dev_utils/xccdf/parser/objects.rb
Overview
Class for XCCDF benchmark platform
Instance Attribute Summary
Attributes inherited from ElementBase
#child_labels, #children, #link_labels
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element) ⇒ Platform
constructor
A new instance of Platform.
- #to_s ⇒ Object
Methods inherited from ElementBase
#add_link, #add_links, #all_values, #label, #method_missing, #respond_to_missing?, #xccdf_type, xmlns
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) ⇒ Platform
Returns a new instance of Platform.
640 641 642 643 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 640 def initialize(element) super add_child(AttributeValue, element, 'idref') end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AbideDevUtils::XCCDF::Parser::Objects::ElementBase
Class Method Details
.xpath ⇒ Object
645 646 647 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 645 def self.xpath 'platform' end |
Instance Method Details
#to_s ⇒ Object
649 650 651 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 649 def to_s search_children.find_child_by_class(AttributeValue).to_s end |