Parent

Forgery::Internet

Public Class Methods

cctld() click to toggle source
# File lib/forgery/forgery/internet.rb, line 23
def self.cctld
  dictionaries[:country_code_top_level_domains].random.unextend
end
domain_name() click to toggle source
# File lib/forgery/forgery/internet.rb, line 11
def self.domain_name
  dictionaries[:company_names].random.downcase + '.' + self.top_level_domain
end
email_address() click to toggle source
# File lib/forgery/forgery/internet.rb, line 15
def self.email_address
  user_name + '@' + domain_name
end
email_subject(options={}) click to toggle source
# File lib/forgery/forgery/internet.rb, line 19
def self.email_subject(options={})
  Forgery::LoremIpsum.title(options)
end
ip_v4() click to toggle source
# File lib/forgery/forgery/internet.rb, line 27
def self.ip_v4
  (1..4).map{rand(256)}.join('.')
end
top_level_domain() click to toggle source
# File lib/forgery/forgery/internet.rb, line 7
def self.top_level_domain
  dictionaries[:top_level_domains].random.unextend
end
user_name() click to toggle source
# File lib/forgery/forgery/internet.rb, line 3
def self.user_name
  (dictionaries[:male_first_names].random[0,1] + dictionaries[:last_names].random).downcase
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.