Class: Nfe::Services::Dispatch::ConsStatServ
- Inherits:
-
Object
- Object
- Nfe::Services::Dispatch::ConsStatServ
- Extended by:
- Enumerize
- Includes:
- ActiveModel::Model, Helpers::XmlModel::NfeModel, Models::Concerns::Ufable
- Defined in:
- lib/nfe/services/dispatch/consStatServ.rb
Instance Attribute Summary collapse
-
#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
#versao ⇒ Object
Returns the value of attribute versao.
13 14 15 |
# File 'lib/nfe/services/dispatch/consStatServ.rb', line 13 def versao @versao end |
Instance Method Details
#to_xml ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/nfe/services/dispatch/consStatServ.rb', line 25 def to_xml xml = Builder::XmlMarkup.new xml.consStatServ(xmlns: Models::NFe.namespace, versao: versao ) do |cons| add_elements cons end xml.target! end |