Sha256: ed1850d60dff87e248b50723977c518688cd0eea51036c5dc40e7a9e58ad55bd
Contents?: true
Size: 686 Bytes
Versions: 13
Compression:
Stored size: 686 Bytes
Contents
# module EventSource # module Postgres # module Controls # Category = EventSource::Controls::Category # end # end # end module EventSource module Postgres module Controls module Category def self.example(category: nil, randomize_category: nil) if randomize_category.nil? if !category.nil? randomize_category = false end end randomize_category = true if randomize_category.nil? category ||= 'test' if randomize_category category = "#{category}#{SecureRandom.hex(16)}XX" end category end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems