Class: Faker::Book

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/book.rb

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

.authorObject



10
11
12
# File 'lib/faker/book.rb', line 10

def author
  fetch('book.author')
end

.publisherObject



14
15
16
# File 'lib/faker/book.rb', line 14

def publisher
  fetch('book.publisher')
end

.titleObject



6
7
8
# File 'lib/faker/book.rb', line 6

def title
  fetch('book.title')
end