Class: Nfe::Helpers::XmlModel::AttributeNode
- Inherits:
-
AttributeBase
- Object
- AttributeBase
- Nfe::Helpers::XmlModel::AttributeNode
- 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
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 |