Sha256: 625505515cf92b0fe9e28cae0285b05e744560668b05ef63f8f003cdd8e8eff8
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
module RubyXmlNfe class Prod attr_reader :xml, :cProd, :cEAN, :xProd, :ncm, :cest, :cfop, :uCom, :qCom, :vUnCom, :vProd, :cEANTrib, :uTrib, :qTrib, :vUnTrib, :indTot, :xPed, :nItemPed, :nFCI def initialize(xml, params) @xml = xml @cProd = params[:cProd] @cEAN = params[:cEAN] @xProd = params[:xProd] @ncm = params[:NCM] @cest = params[:CEST] @cfop = params[:CFOP] @uCom = params[:uCom] @qCom = params[:qCom] @vUnCom = params[:vUnCom] @vProd = params[:vProd] @cEANTrib = params[:cEANTrib] @uTrib = params[:uTrib] @qTrib = params[:qTrib] @vUnTrib = params[:vUnTrib] @indTot = params[:indTot] @xPed = params[:xPed] @nItemPed = params[:nItemPed] @nFCI = params[:nFCI] end def build xml.prod do xml.cProd cProd xml.cEAN cEAN xml.xProd xProd xml.NCM ncm xml.CEST cest if cest xml.CFOP cfop xml.uCom uCom xml.qCom qCom xml.vUnCom vUnCom xml.vProd vProd xml.cEANTrib cEANTrib xml.uTrib uTrib xml.qTrib qTrib xml.vUnTrib vUnTrib xml.indTot indTot xml.xPed xPed if xPed xml.nItemPed nItemPed if nItemPed xml.nFCI nFCI if nFCI end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_xml_nfe-0.1.0 | lib/ruby_xml_nfe/prod.rb |