Class: Redaction::Types::Phone

Inherits:
Base
  • Object
show all
Defined in:
lib/redaction/types/phone.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #record

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from Redaction::Types::Base

Instance Method Details

#contentObject



6
7
8
9
10
# File 'lib/redaction/types/phone.rb', line 6

def content
  # Use cell_phone so no extension is added
  # see: https://github.com/faker-ruby/faker/blob/master/doc/default/phone_number.md
  Faker::PhoneNumber.cell_phone
end