Sha256: ac01f84f1c3e4c77a41c42964842ca57350053479c63ee8edab1338d5124a257
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module DirtySeed module Assigners module Type # Manages json assignments class Json < Assigner include FakerHelper # Returns a random hash # @return [Hash] def value Hash[ *Array.new(4) do faker_value( generator: :Lorem, method: :word ) end ] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dirty_seed-0.2.1 | lib/dirty_seed/assigners/type/json.rb |
dirty_seed-0.2.0 | lib/dirty_seed/assigners/type/json.rb |