lib/healthcare_phony/gender.rb in healthcare_phony-0.4.1 vs lib/healthcare_phony/gender.rb in healthcare_phony-0.5.0

- old
+ new

@@ -6,10 +6,10 @@ attr_accessor :code, :description # Public: Initializes a Gender. Pass in hash of different parameters, currently this includes: # blank - An integer representing the % of times Address components should be blank. - def initialize(**init_args) + def initialize(init_args = {}) @description = %w[Female Male Unknown].sample @description = if !init_args[:blank].nil? Helper.random_with_blank(@description, init_args[:blank]) else