Module: BrInvoicesPdf::Nfce::Parser::Payments
- Extended by:
- Util::XmlLocate
- Defined in:
- lib/br_invoices_pdf/nfce/parser/payments.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 15 |
# File 'lib/br_invoices_pdf/nfce/parser/payments.rb', line 11 def execute(xml) node_payments = xml.locate("#{root_path(xml)}/pag") node_payments.map(&method(:payment_by)) end |