Sha256: f4af719d8f19895b6c377e7c478208434ac3f4ca226266283d7d45c2fed2071b
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true module Akita module HarLogger class HarUtils # Converts a Hash into a list of Hash objects. Each entry in the given # Hash will be represented in the output by a Hash object that maps # 'name' to the entry's key and 'value' to the entry's value. def self.hashToList(hash) hash.reduce([]) { |accum, (k, v)| accum.append({ name: k, value: v, }) } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
akita-har_logger-0.2.1 | lib/akita/har_logger/har_utils.rb |
akita-har_logger-0.2.0 | lib/akita/har_logger/har_utils.rb |
akita-har_logger-0.1.0 | lib/akita/har_logger/har_utils.rb |