Class: Faker::Book
Constant Summary
Constants inherited
from Base
Faker::Base::Letters, Faker::Base::Numbers, Faker::Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.author ⇒ Object
12
13
14
|
# File 'lib/faker/books/book.rb', line 12
def author
parse('book.author')
end
|
.genre ⇒ Object
20
21
22
|
# File 'lib/faker/books/book.rb', line 20
def genre
fetch('book.genre')
end
|
.publisher ⇒ Object
16
17
18
|
# File 'lib/faker/books/book.rb', line 16
def publisher
fetch('book.publisher')
end
|
.title ⇒ Object
8
9
10
|
# File 'lib/faker/books/book.rb', line 8
def title
fetch('book.title')
end
|