Class: SaxStream::Internal::Mappings::ElementAttribute

Inherits:
Element
  • Object
show all
Defined in:
lib/sax_stream/internal/mappings/element_attribute.rb

Direct Known Subclasses

Wildcard

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Element

#find_or_insert_node, #map_value_onto_object, #string_value_from_object

Methods inherited from Base

#find_or_insert_parent_node, #handler_for, #initialize, #map_value_onto_object, #path_parts

Constructor Details

This class inherits a constructor from SaxStream::Internal::Mappings::Base

Instance Method Details

#update_parent_node(builder, doc, parent, object) ⇒ Object



7
8
9
10
# File 'lib/sax_stream/internal/mappings/element_attribute.rb', line 7

def update_parent_node(builder, doc, parent, object)
  parent[base_attribute_name] = string_value_from_object(object)
  parent
end