Class: OoxmlParser::HyperlinkForHover
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::HyperlinkForHover
- Defined in:
- lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb
Overview
Class for parsing hlinkHover tags
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#id ⇒ Object
Returns the value of attribute id.
-
#sound ⇒ Object
Returns the value of attribute sound.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#initialize(id = '', action = '') ⇒ HyperlinkForHover
constructor
A new instance of HyperlinkForHover.
-
#parse(node) ⇒ HyperlinkForHover
Parse HyperlinkForHover.
Methods inherited from OOXMLDocumentObject
#==, add_to_xmls_stack, copy_file_and_rename_to_zip, current_xml, dir, encrypted_file?, get_link_from_rels, unzip_file, #with_data?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
#initialize(id = '', action = '') ⇒ HyperlinkForHover
Returns a new instance of HyperlinkForHover.
6 7 8 9 |
# File 'lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb', line 6 def initialize(id = '', action = '') @id = id @action = action end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4 5 6 |
# File 'lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb', line 4 def action @action end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb', line 4 def id @id end |
#sound ⇒ Object
Returns the value of attribute sound.
4 5 6 |
# File 'lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb', line 4 def sound @sound end |
Instance Method Details
#parse(node) ⇒ HyperlinkForHover
Parse HyperlinkForHover
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb', line 14 def parse(node) @id = node.attribute('id').value @action = node.attribute('action').value node.xpath('*').each do |hyperlink_for_hover_node_child| case hyperlink_for_hover_node_child.name when 'snd' @sound = Sound.new(parent: self).parse(hyperlink_for_hover_node_child) end end self end |