Class: Faker::Movies::HarryPotter
- Defined in:
- lib/faker/movies/harry_potter.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.book ⇒ String
Produces a book from Harry Potter.
-
.character ⇒ String
Produces a character from Harry Potter.
-
.house ⇒ String
Produces a house from Harry Potter.
-
.location ⇒ String
Produces a location from Harry Potter.
-
.quote ⇒ String
Produces a quote from Harry Potter.
-
.spell ⇒ String
Produces a spell from Harry Potter.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.book ⇒ String
Produces a book from Harry Potter.
55 56 57 |
# File 'lib/faker/movies/harry_potter.rb', line 55 def book fetch('harry_potter.books') end |
.character ⇒ String
Produces a character from Harry Potter.
16 17 18 |
# File 'lib/faker/movies/harry_potter.rb', line 16 def character fetch('harry_potter.characters') end |
.house ⇒ String
Produces a house from Harry Potter.
68 69 70 |
# File 'lib/faker/movies/harry_potter.rb', line 68 def house fetch('harry_potter.houses') end |
.location ⇒ String
Produces a location from Harry Potter.
29 30 31 |
# File 'lib/faker/movies/harry_potter.rb', line 29 def location fetch('harry_potter.locations') end |
.quote ⇒ String
Produces a quote from Harry Potter.
42 43 44 |
# File 'lib/faker/movies/harry_potter.rb', line 42 def quote fetch('harry_potter.quotes') end |
.spell ⇒ String
Produces a spell from Harry Potter.
81 82 83 |
# File 'lib/faker/movies/harry_potter.rb', line 81 def spell fetch('harry_potter.spells') end |