Class: Nfe::Helpers::XmlModel::AttributeNode

Inherits:
AttributeBase show all
Defined in:
lib/nfe/helpers/xml_model/attribute_node.rb

Instance Attribute Summary

Attributes inherited from AttributeBase

#format, #klass, #name, #type, #xml_alias

Instance Method Summary collapse

Methods inherited from AttributeBase

#add_to_xml, #initialize

Constructor Details

This class inherits a constructor from Nfe::Helpers::XmlModel::AttributeBase

Instance Method Details

#parse(context, doc) ⇒ Object



5
6
7
8
# File 'lib/nfe/helpers/xml_model/attribute_node.rb', line 5

def parse(context, doc)
  value = xml_value(doc)
  context.send(name).parse! value.to_xml if value.present?
end