class Faker::Movies::HarryPotter

Public Class Methods

book() click to toggle source

Produces a book from Harry Potter.

@return [String]

@example

Faker::Movies::HarryPotter.book #=> "Harry Potter and the Chamber of Secrets"

@faker.version 1.7.3

# File lib/faker/movies/harry_potter.rb, line 55
def book
  fetch('harry_potter.books')
end
character() click to toggle source

Produces a character from Harry Potter.

@return [String]

@example

Faker::Movies::HarryPotter.character #=> "Harry Potter"

@faker.version 1.7.3

# File lib/faker/movies/harry_potter.rb, line 16
def character
  fetch('harry_potter.characters')
end
house() click to toggle source

Produces a house from Harry Potter.

@return [String]

@example

Faker::Movies::HarryPotter.house #=> "Gryffindor"

@faker.version 1.7.3

# File lib/faker/movies/harry_potter.rb, line 68
def house
  fetch('harry_potter.houses')
end
location() click to toggle source

Produces a location from Harry Potter.

@return [String]

@example

Faker::Movies::HarryPotter.location #=> "Hogwarts"

@faker.version 1.7.3

# File lib/faker/movies/harry_potter.rb, line 29
def location
  fetch('harry_potter.locations')
end
quote() click to toggle source

Produces a quote from Harry Potter.

@return [String]

@example

Faker::Movies::HarryPotter.quote #=> "I solemnly swear that I am up to good."

@faker.version 1.7.3

# File lib/faker/movies/harry_potter.rb, line 42
def quote
  fetch('harry_potter.quotes')
end
spell() click to toggle source

Produces a spell from Harry Potter.

@return [String]

@example

Faker::Movies::HarryPotter.spell #=> "Reparo"

@faker.version 1.7.3

# File lib/faker/movies/harry_potter.rb, line 81
def spell
  fetch('harry_potter.spells')
end