Class: Faker::Internet

Inherits:
Object
  • Object
show all
Defined in:
lib/indofaker/internet.rb

Class Method Summary collapse

Class Method Details

.domain_suffixObject



8
9
10
# File 'lib/indofaker/internet.rb', line 8

def domain_suffix
  %w(co.id or.id org web.id net com info name).rand
end

.free_email(name = nil) ⇒ Object



4
5
6
# File 'lib/indofaker/internet.rb', line 4

def free_email(name = nil)
  [ user_name(name), %w(gmail.com yahoo.com hotmail.com yahoo.co.id).rand ].join('@')
end