class Faker::Book
Public Class Methods
Source
# File lib/faker/books/book.rb, line 56 def genre fetch('book.genre') end
Produces a random genre
@return [String]
@example
Faker::Book.genre #=> "Mystery"
@faker.version 1.9.3
Source
# File lib/faker/books/book.rb, line 43 def publisher fetch('book.publisher') end
Produces a random book publisher
@return [String]
@example
Faker::Book.publisher #=> "Opus Reader"
@faker.version 1.9.3
Source
# File lib/faker/books/book.rb, line 17 def title fetch('book.title') end
Produces a random book title
@return [String]
@example
Faker::Book.title #=> "The Odd Sister"
@faker.version 1.9.3