Sha256: 562976fd2f9fd0f33cca4999ffb903e7786f5e7bac7260a56a4347ab16b94ef0

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

class InternetForgery < 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
    self.user_name + '@' + self.domain_name
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sevenwire-forgery-0.2.0 lib/forgeries/internet_forgery.rb
sevenwire-forgery-0.2.1 lib/forgeries/internet_forgery.rb
sevenwire-forgery-0.2.2 lib/forgeries/internet_forgery.rb
forgery-0.2.2 lib/forgeries/internet_forgery.rb