Class: Faker::Movies::HarryPotter

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

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, 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

.bookObject


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

def book
  fetch('harry_potter.books')
end

.characterObject


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

def character
  fetch('harry_potter.characters')
end

.houseObject


23
24
25
# File 'lib/faker/movies/harry_potter.rb', line 23

def house
  fetch('harry_potter.houses')
end

.locationObject


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

def location
  fetch('harry_potter.locations')
end

.quoteObject


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

def quote
  fetch('harry_potter.quotes')
end

.spellObject


27
28
29
# File 'lib/faker/movies/harry_potter.rb', line 27

def spell
  fetch('harry_potter.spells')
end