Module: BrInvoicesPdf::Nfce::Parser::AdditionalInfo

Extended by:
Util::XmlLocate
Defined in:
lib/br_invoices_pdf/nfce/parser/additional_info.rb

Class Method Summary collapse

Methods included from Util::XmlLocate

locate_element, node_locate, root_path

Class Method Details

.execute(xml) ⇒ Object



11
12
13
14
# File 'lib/br_invoices_pdf/nfce/parser/additional_info.rb', line 11

def execute(xml)
  tribute = locate_element(xml, "#{root_path(xml)}/det/imposto/vTotTrib")
  tribute || 0
end