Sha256: 1dc90540e7422f66b73f028a2638bb12defcc0b59d13c0c5544c96084bb51976

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

class InternetForgery < Forgery
  dictionaries :male_first_names, :female_first_names, :last_names, :top_level_domains, :company_names

  def self.user_name
    (MALE_FIRST_NAMES.random[0,1] + LAST_NAMES.random).downcase
  end

  def self.top_level_domain
    TOP_LEVEL_DOMAINS.random
  end

  def self.domain_name
    COMPANY_NAMES.random.downcase + '.' + self.top_level_domain
  end
  
  def self.email_address
    self.user_name + '@' + self.domain_name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sevenwire-forgery-0.1.0 lib/forgeries/internet_forgery.rb