Module: BrInvoicesPdf::Util::MountParams
- Included in:
- Nfce::Parser::Company, Nfce::Parser::Customer
- Defined in:
- lib/br_invoices_pdf/util/mount_params.rb
Class Method Summary collapse
Class Method Details
.mount(xml, params) ⇒ Object
8 9 10 11 12 |
# File 'lib/br_invoices_pdf/util/mount_params.rb', line 8 def mount(xml, params) params.reduce({}) do |response, (param, path)| { **response, param => locate_element(xml, path) } end end |