Class: Nfe::Models::Taxes::Imposto

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, Helpers::XmlModel::NfeModel
Defined in:
lib/nfe/models/taxes/imposto.rb

Instance Method Summary collapse

Methods included from Helpers::XmlModel::NfeModel

#add_elements, #check_present, included, #parse!, #parse_elements, #present?, #to_xml, #validate_optional_attributes, #validate_required_attributes

Constructor Details

#initializeImposto

Returns a new instance of Imposto.



31
32
33
34
35
36
37
38
39
40
# File 'lib/nfe/models/taxes/imposto.rb', line 31

def initialize
  @icms = ICMS.new
  @ipi = IPI.new
  @ii = II.new
  @pis = PISCOFINS.new("pis")
  @pisst = PISCOFINSST.new("pPIS","vPIS")
  @cofins = PISCOFINS.new("cofins")
  @cofinsst = PISCOFINSST.new("pCOFINS","vCOFINS")
  @issqn = ISSQN.new
end