Sha256: 7e30b638aafb68c303160af819ef6808b8526d42c2756bb06ed9d014017759a0
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 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 def self.cctld dictionaries[:country_code_top_level_domains].random end def self.ip_v4 (1..4).map{rand(256)}.join('.') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
forgery-0.3.7 | lib/forgery/forgery/internet.rb |
forgery-0.3.6 | lib/forgery/forgery/internet.rb |
forgery-0.3.5 | lib/forgery/forgery/internet.rb |
forgery-0.3.4 | lib/forgery/forgery/internet.rb |