Class: Nfe::Models::ProcInutNFe
- Inherits:
-
Object
- Object
- Nfe::Models::ProcInutNFe
- Includes:
- ActiveModel::Model, Helpers::XmlModel::NfeModel
- Defined in:
- lib/nfe/models/procInutNFe.rb
Instance Attribute Summary collapse
-
#inutNFe ⇒ Object
readonly
Returns the value of attribute inutNFe.
-
#retInutNFe ⇒ Object
readonly
Returns the value of attribute retInutNFe.
Instance Method Summary collapse
-
#initialize(inutNFe, retInutNFe) ⇒ ProcInutNFe
constructor
A new instance of ProcInutNFe.
- #to_xml ⇒ Object
Methods included from Helpers::XmlModel::NfeModel
#add_elements, #check_present, included, #parse!, #parse_elements, #present?, #validate_optional_attributes, #validate_required_attributes
Constructor Details
#initialize(inutNFe, retInutNFe) ⇒ ProcInutNFe
Returns a new instance of ProcInutNFe.
9 10 11 12 |
# File 'lib/nfe/models/procInutNFe.rb', line 9 def initialize(inutNFe, retInutNFe) @inutNFe = inutNFe @retInutNFe = retInutNFe end |
Instance Attribute Details
#inutNFe ⇒ Object (readonly)
Returns the value of attribute inutNFe.
7 8 9 |
# File 'lib/nfe/models/procInutNFe.rb', line 7 def inutNFe @inutNFe end |
#retInutNFe ⇒ Object (readonly)
Returns the value of attribute retInutNFe.
7 8 9 |
# File 'lib/nfe/models/procInutNFe.rb', line 7 def retInutNFe @retInutNFe end |
Instance Method Details
#to_xml ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/nfe/models/procInutNFe.rb', line 14 def to_xml xml = Builder::XmlMarkup.new xml.ProcInutNFe(xmlns: Models::NFe.namespace, versao: inutNFe.versao) do |node| node << inutNFe.to_xml node << retInutNFe.to_xml end xml.target! end |