Class: Imposter::Phone
- Inherits:
-
Object
- Object
- Imposter::Phone
- Defined in:
- lib/imposter/phone.rb
Constant Summary collapse
- Formats =
[ '###-###-####', '(###)###-####', '1-###-###-####', '###.###.####', '###-###-####', '(###)###-####', '1-###-###-####', '###.###.####', '###-###-#### x###', '(###)###-#### x###', '1-###-###-#### x###', '###.###.#### x###', '###-###-#### x####', '(###)###-#### x####', '1-###-###-#### x####', '###.###.#### x####', '###-###-#### x#####', '(###)###-#### x#####', '1-###-###-#### x#####', '###.###.#### x#####' ]
Class Method Summary collapse
Class Method Details
.number(format = false) ⇒ Object
7 8 9 10 |
# File 'lib/imposter/phone.rb', line 7 def self.number(format=false) format ||= Formats.rand Imposter.numerify(format) end |