Class: Nfe::Helpers::XmlModel::AttributeDatetime

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

Instance Attribute Summary

Attributes inherited from AttributeBase

#klass, #name, #type, #xml_alias

Instance Method Summary collapse

Methods inherited from AttributeBase

#add_to_xml, #initialize, #parse

Constructor Details

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

Instance Method Details

#formatObject



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

def format
  @format || "%Y-%m-%dT%H:%M:%S%:z"
end