Class: RubyXmlNfe::IcmsTot
- Inherits:
-
Object
- Object
- RubyXmlNfe::IcmsTot
- Defined in:
- lib/ruby_xml_nfe/icms_tot.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ IcmsTot
constructor
A new instance of IcmsTot.
Constructor Details
#initialize(xml, params) ⇒ IcmsTot
Returns a new instance of IcmsTot.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ruby_xml_nfe/icms_tot.rb', line 6 def initialize(xml, params) @xml = xml @vBC = params[:vBC] @vICMS = params[:vICMS] @vICMSDeson = params[:vICMSDeson] @vFCPUFDest = params[:vFCPUFDest] @vICMSUFDest = params[:vICMSUFDest] @vICMSUFRemet = params[:vICMSUFRemet] @vFCP = params[:vFCP] @vBCST = params[:vBCST] @vST = params[:vST] @vFCPST = params[:vFCPST] @vFCPSTRet = params[:vFCPSTRet] @vProd = params[:vProd] @vFrete = params[:vFrete] @vSeg = params[:vSeg] @vDesc = params[:vDesc] @vII = params[:vII] @vIPI = params[:vIPI] @vIPIDevol = params[:vIPIDevol] @vPIS = params[:vPIS] @vCOFINS = params[:vCOFINS] @vOutro = params[:vOutro] @vNF = params[:vNF] end |
Instance Method Details
#build ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/ruby_xml_nfe/icms_tot.rb', line 32 def build xml.ICMSTot do xml.vBC vBC xml.vICMS vICMS xml.vICMSDeson vICMSDeson xml.vFCPUFDest vFCPUFDest if vFCPUFDest xml.vICMSUFDest vICMSUFDest if vICMSUFDest xml.vICMSUFRemet vICMSUFRemet if vICMSUFRemet xml.vFCP vFCP xml.vBCST vBCST xml.vST vST xml.vFCPST vFCPST xml.vFCPSTRet vFCPSTRet xml.vProd vProd xml.vFrete vFrete xml.vSeg vSeg xml.vDesc vDesc xml.vII vII xml.vIPI vIPI xml.vIPIDevol vIPIDevol xml.vPIS vPIS xml.vCOFINS vCOFINS xml.vOutro vOutro xml.vNF vNF end end |