Skip to content
sheerun edited this page Aug 1, 2012 · 2 revisions

user_name

Randomly generates an username.

Forgery(:internet).user_name
# => "jalvarez"

top_level_domain

Randomly generates a top_level_domain.

Forgery(:internet).top_level_domain
# => "edu"

Derives the list of Top Level Domains from dictionaries[:top_level_domains].

domain_name

Randomly generates a domain_name.

Forgery(:internet).domain_name
# => "shuffledrive.edu"

email_address

Generates an e-mail address by joining a user_name and a domain_name.

Forgery(:internet).email_address
# => "[email protected]"

email_subject

Creates a subject based on Forgery::LoremIpsum.title.

Forgery(:internet).email_subject
# => "Lorem Ipsum Dolor Sit Amet, Consectetuer Adipiscing Elit"

cctld

Randomly generates a Country Code Top Level Domain.

Forgery(:internet).cctld
# => "br"

Derives the list of Country Code Top Level Domains from dictionaries[:country_code_top_level_domains].

ip_v4

Randomly generates a IPv4 Number.

Forgery(:internet).ip_v4
# => "62.105.225.99"
Clone this wiki locally