lib/healthcare_phony/email.rb in healthcare_phony-0.4.1 vs lib/healthcare_phony/email.rb in healthcare_phony-0.5.0
- old
+ new
@@ -5,10 +5,10 @@
class Email
attr_accessor :email_address,
:use_code,
:equipment_type
- def initialize(**init_args)
+ def initialize(init_args = {})
@set_blank = !init_args[:blank].nil? && Helper.random_with_blank('X', init_args[:blank]) == ''
@email_address = Faker::Internet.email
@email_address = '' unless @set_blank == false
@use_code = @email_address == '' ? '' : 'NET'
@use_code = '' unless @set_blank == false