Class: Faker::Creature::Dog
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.age ⇒ String
Produces a random dog age.
-
.breed ⇒ String
Produces a random dog breed.
-
.coat_length ⇒ String
Produces a random coat length.
-
.gender ⇒ String
Produces a random gender.
-
.meme_phrase ⇒ String
Produces a random dog meme phrase.
-
.name ⇒ String
Produces a random name for a dog.
-
.size ⇒ String
Produces a random size of a dog.
-
.sound ⇒ String
Produces a random sound made by a dog.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.age ⇒ String
Produces a random dog age
70 71 72 |
# File 'lib/faker/creature/dog.rb', line 70 def age fetch('creature.dog.age') end |
.breed ⇒ String
Produces a random dog breed
31 32 33 |
# File 'lib/faker/creature/dog.rb', line 31 def breed fetch('creature.dog.breed') end |
.coat_length ⇒ String
Produces a random coat length
96 97 98 |
# File 'lib/faker/creature/dog.rb', line 96 def coat_length fetch('creature.dog.coat_length') end |
.gender ⇒ String
Produces a random gender
83 84 85 |
# File 'lib/faker/creature/dog.rb', line 83 def gender Faker::Gender.binary_type end |
.meme_phrase ⇒ String
Produces a random dog meme phrase
57 58 59 |
# File 'lib/faker/creature/dog.rb', line 57 def meme_phrase fetch('creature.dog.meme_phrase') end |
.name ⇒ String
Produces a random name for a dog
18 19 20 |
# File 'lib/faker/creature/dog.rb', line 18 def name fetch('creature.dog.name') end |
.size ⇒ String
Produces a random size of a dog
109 110 111 |
# File 'lib/faker/creature/dog.rb', line 109 def size fetch('creature.dog.size') end |
.sound ⇒ String
Produces a random sound made by a dog
44 45 46 |
# File 'lib/faker/creature/dog.rb', line 44 def sound fetch('creature.dog.sound') end |