Sha256: 7fcc279663f9fdf722e73cf3520c115f1b0e0c60d83878cb4a0daa4eace9adc7
Contents?: true
Size: 893 Bytes
Versions: 4
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true require File.expand_path('phone_number', __dir__) module HealthcarePhony # Public: Generates a fake cell phone number class CellPhoneNumber < PhoneNumber # Public: Initializes a cell phone number. Pass in hash of different parameters, currently this includes: # blank - An integer representing the % of times phone number components should be blank. # use_code - Allows specification of the phone use code (PID.13.2) # equipment_type - Allows specification of the phone equipment type (PID.13.3) def initialize(init_args = {}) super(init_args) @use_code = init_args[:use_code].nil? ? 'ORN' : init_args[:use_code] @use_code = '' unless @set_blank == false @equipment_type = init_args[:equipment_type].nil? ? 'CP' : init_args[:equipment_type] @equipment_type = '' unless @set_blank == false end end end
Version data entries
4 entries across 4 versions & 1 rubygems