Sha256: d2ec55566c0f5028fa421fb0af1bbee3431596112d4a9b681bbb6991e806287e
Contents?: true
Size: 581 Bytes
Versions: 12
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module Remocon class ParameterFileDumper def initialize(parameters) @parameters = parameters.with_indifferent_access end def dump @parameters.each_with_object({}) do |(key, body), hash| hash[key] = body[:defaultValue] hash[key][:description] = body[:description] if body[:description] next unless body[:conditionalValues] hash[key][:conditions] = body[:conditionalValues].each_with_object({}) do |(key2, body2), hash2| hash2[key2] = body2 end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems