Class: FakeFaker::Internet
- Inherits:
-
Object
- Object
- FakeFaker::Internet
- Defined in:
- lib/fake_faker/internet.rb
Class Method Summary collapse
- .domain_name(subdomain = nil) ⇒ Object
- .email(name = nil, *separators) ⇒ Object
- .fix_umlauts(string = nil) ⇒ Object
- .free_email(name = nil) ⇒ Object
- .mac_address(prefix = nil) ⇒ Object
- .password(min_length = nil, max_length = nil, mix_case = nil, special_chars = nil) ⇒ Object
- .safe_email(name = nil) ⇒ Object
- .slug(words = nil, glue = nil) ⇒ Object
- .url(host = nil, path = nil, scheme = nil) ⇒ Object
- .user_agent(vendor = nil) ⇒ Object
- .user_name(specifier = nil, separators = nil) ⇒ Object
- .username(specifier = nil, separators = nil) ⇒ Object
Class Method Details
.domain_name(subdomain = nil) ⇒ Object
4 5 6 |
# File 'lib/fake_faker/internet.rb', line 4 def domain_name(subdomain = nil) ::Faker::Internet.domain_name(subdomain: subdomain) end |
.email(name = nil, *separators) ⇒ Object
8 9 10 |
# File 'lib/fake_faker/internet.rb', line 8 def email(name = nil, *separators) ::Faker::Internet.email(name: name, separators: separators) end |
.fix_umlauts(string = nil) ⇒ Object
12 13 14 |
# File 'lib/fake_faker/internet.rb', line 12 def fix_umlauts(string = nil) ::Faker::Internet.fix_umlauts(string: string) end |
.free_email(name = nil) ⇒ Object
16 17 18 |
# File 'lib/fake_faker/internet.rb', line 16 def free_email(name = nil) ::Faker::Internet.free_email(name: name) end |
.mac_address(prefix = nil) ⇒ Object
20 21 22 |
# File 'lib/fake_faker/internet.rb', line 20 def mac_address(prefix = nil) ::Faker::Internet.mac_address(prefix: prefix) end |
.password(min_length = nil, max_length = nil, mix_case = nil, special_chars = nil) ⇒ Object
24 25 26 |
# File 'lib/fake_faker/internet.rb', line 24 def password(min_length = nil, max_length = nil, mix_case = nil, special_chars = nil) ::Faker::Internet.password(min_length: min_length, max_length: max_length, mix_case: mix_case, special_characters: special_characters) end |
.safe_email(name = nil) ⇒ Object
28 29 30 |
# File 'lib/fake_faker/internet.rb', line 28 def safe_email(name = nil) ::Faker::Internet.safe_email(name: name) end |
.slug(words = nil, glue = nil) ⇒ Object
32 33 34 |
# File 'lib/fake_faker/internet.rb', line 32 def slug(words = nil, glue = nil) ::Faker::Internet.slug(words: words, glue: glue) end |
.url(host = nil, path = nil, scheme = nil) ⇒ Object
36 37 38 |
# File 'lib/fake_faker/internet.rb', line 36 def url(host = nil, path = nil, scheme = nil) ::Faker::Internet.url(host: host, path: path, scheme: scheme) end |
.user_agent(vendor = nil) ⇒ Object
40 41 42 |
# File 'lib/fake_faker/internet.rb', line 40 def user_agent(vendor = nil) ::Faker::Internet.user_agent(vendor: vendor) end |
.user_name(specifier = nil, separators = nil) ⇒ Object
44 45 46 |
# File 'lib/fake_faker/internet.rb', line 44 def user_name(specifier = nil, separators = nil) ::Faker::Internet.user_name(specifier: specifier, separators: separators) end |
.username(specifier = nil, separators = nil) ⇒ Object
48 49 50 |
# File 'lib/fake_faker/internet.rb', line 48 def username(specifier = nil, separators = nil) ::Faker::Internet.username(specifier: specifier, separators: separators) end |