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