Class: Faker::Book
Constant Summary
Constants inherited from Base
Faker::Base::LLetters, Faker::Base::Letters, Faker::Base::NOT_GIVEN, Faker::Base::Numbers, Faker::Base::ULetters
Class Method Summary collapse
-
.author ⇒ String
Produces a random book author.
-
.genre ⇒ String
Produces a random genre.
-
.publisher ⇒ String
Produces a random book publisher.
-
.title ⇒ String
Produces a random book title.
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
.author ⇒ String
Produces a random book author
30 31 32 |
# File 'lib/faker/books/book.rb', line 30 def parse('book.author') end |
.genre ⇒ String
Produces a random genre
56 57 58 |
# File 'lib/faker/books/book.rb', line 56 def genre fetch('book.genre') end |
.publisher ⇒ String
Produces a random book publisher
43 44 45 |
# File 'lib/faker/books/book.rb', line 43 def publisher fetch('book.publisher') end |
.title ⇒ String
Produces a random book title
17 18 19 |
# File 'lib/faker/books/book.rb', line 17 def title fetch('book.title') end |