Class: Faker::HarryPotter

Inherits:
Base
  • Object
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

.bookObject



16
17
18
# File 'lib/faker/harry_potter.rb', line 16

def book
  fetch('harry_potter.books')
end

.characterObject



4
5
6
# File 'lib/faker/harry_potter.rb', line 4

def character
  fetch('harry_potter.characters')
end

.houseObject



20
21
22
# File 'lib/faker/harry_potter.rb', line 20

def house
  fetch('harry_potter.houses')
end

.locationObject



8
9
10
# File 'lib/faker/harry_potter.rb', line 8

def location
  fetch('harry_potter.locations')
end

.quoteObject



12
13
14
# File 'lib/faker/harry_potter.rb', line 12

def quote
  fetch('harry_potter.quotes')
end