Class: Faker::HarryPotter
- Inherits:
-
Base
- Object
- Base
- Faker::HarryPotter
show all
- Defined in:
- lib/faker/harry_potter.rb
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, sample, shuffle, translate, unique, with_locale
Class Method Details
.book ⇒ Object
16
17
18
|
# File 'lib/faker/harry_potter.rb', line 16
def book
fetch('harry_potter.books')
end
|
.character ⇒ Object
4
5
6
|
# File 'lib/faker/harry_potter.rb', line 4
def character
fetch('harry_potter.characters')
end
|
.house ⇒ Object
20
21
22
|
# File 'lib/faker/harry_potter.rb', line 20
def house
fetch('harry_potter.houses')
end
|
.location ⇒ Object
8
9
10
|
# File 'lib/faker/harry_potter.rb', line 8
def location
fetch('harry_potter.locations')
end
|
.quote ⇒ Object
12
13
14
|
# File 'lib/faker/harry_potter.rb', line 12
def quote
fetch('harry_potter.quotes')
end
|