Class: VAST::Extension

Inherits:
Element show all
Defined in:
lib/vast/extension.rb

Overview

The VAST allows any valid XML within the extensions element. Use of extensions will necessarily require offline coordination between VAST sender and VAST receiver.

Instance Attribute Summary

Attributes inherited from Element

#source_node

Instance Method Summary collapse

Methods inherited from Element

#initialize

Constructor Details

This class inherits a constructor from VAST::Element

Instance Method Details

#typeObject

Extension type



7
8
9
# File 'lib/vast/extension.rb', line 7

def type
  source_node[:type]
end

#xmlObject

Access to the XML contents of this extension, as a Nokogiri::XML::Node nokogiri.rubyforge.org/nokogiri/Nokogiri/XML/Node.html. Alias of Extension#source_node



14
15
16
# File 'lib/vast/extension.rb', line 14

def xml
  source_node
end