Sha256: c8db03946a27b337453fb863a0e74806573383d638120169cbff06650eb69008

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

class Forgery::Internet < Forgery

  def self.user_name
    (dictionaries[:male_first_names].random[0,1] + dictionaries[:last_names].random).downcase
  end

  def self.top_level_domain
    dictionaries[:top_level_domains].random
  end

  def self.domain_name
    dictionaries[:company_names].random.downcase + '.' + self.top_level_domain
  end

  def self.email_address
    user_name + '@' + domain_name
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgery-0.3.2 lib/forgery/forgery/internet.rb
forgery-0.3.1 lib/forgery/forgery/internet.rb