Sha256: 83fb001d13008f4f0a01425f82023480fdde58f3c9292b988f0d3bffa9d942c8
Contents?: true
Size: 387 Bytes
Versions: 1
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true require 'ox' module Trumail module Parser class Xml < Trumail::Parser::Base def parse @hash = Ox.load(@data, mode: :hash_no_attrs) .dig(:lookup) .each_with_object({}) do |(key, val), hash| hash[key.to_s] = eval(val) rescue val end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trumail-2.0.1 | lib/trumail/parser/xml.rb |