Class: Nfe::Services::Dispatch::EnvEvento
- Inherits:
-
Object
- Object
- Nfe::Services::Dispatch::EnvEvento
- Includes:
- ActiveModel::Model, Helpers::XmlModel::NfeModel
- Defined in:
- lib/nfe/services/dispatch/envEvento.rb
Instance Attribute Summary collapse
-
#evento ⇒ Object
Returns the value of attribute evento.
-
#idLote ⇒ Object
Returns the value of attribute idLote.
-
#versao ⇒ Object
Returns the value of attribute versao.
Instance Method Summary collapse
Methods included from Helpers::XmlModel::NfeModel
#add_elements, #check_present, included, #parse!, #parse_elements, #present?, #validate_optional_attributes, #validate_required_attributes
Instance Attribute Details
#evento ⇒ Object
Returns the value of attribute evento.
8 9 10 |
# File 'lib/nfe/services/dispatch/envEvento.rb', line 8 def evento @evento end |
#idLote ⇒ Object
Returns the value of attribute idLote.
8 9 10 |
# File 'lib/nfe/services/dispatch/envEvento.rb', line 8 def idLote @idLote end |
#versao ⇒ Object
Returns the value of attribute versao.
8 9 10 |
# File 'lib/nfe/services/dispatch/envEvento.rb', line 8 def versao @versao end |
Instance Method Details
#to_xml ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/nfe/services/dispatch/envEvento.rb', line 15 def to_xml xml = Builder::XmlMarkup.new xml.envEvento({xmlns: Nfe::Models::NFe.namespace, versao: versao}) do |nfe| nfe.idLote idLote nfe << evento.to_xml end xml.target! end |