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, fetch, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate
Class Method Details
.author ⇒ Object
10
11
12
|
# File 'lib/faker/book.rb', line 10
def author
parse('book.author')
end
|
.genre ⇒ Object
18
19
20
|
# File 'lib/faker/book.rb', line 18
def genre
fetch('book.genre')
end
|
.publisher ⇒ Object
14
15
16
|
# File 'lib/faker/book.rb', line 14
def publisher
fetch('book.publisher')
end
|
.title ⇒ Object
6
7
8
|
# File 'lib/faker/book.rb', line 6
def title
fetch('book.title')
end
|