Sha256: f4741f9d5741fe175cf6b64a48cc34951e2efca17359c4e448b3518d7f4c44b3
Contents?: true
Size: 300 Bytes
Versions: 1
Compression:
Stored size: 300 Bytes
Contents
# encoding: UTF-8 require 'nokogiri' class Correios::Frete::Parser def servicos(xml) servicos = {} Nokogiri::XML(xml).root.elements.each do |element| servico = Correios::Frete::Servico.new.parse(element.to_xml) servicos[servico.tipo] = servico end servicos end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
correios-frete-0.3.0 | lib/correios/frete/parser.rb |