class Faker::Movies::Hobbit

Public Class Methods

character() click to toggle source

Produces the name of a character from The Hobbit.

@return [String]

@example

Faker::Movies::Hobbit.character #=> "Gandalf the Grey"

@faker.version 1.8.0

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

Produces the name of a location from The Hobbit.

@return [String]

@example

Faker::Movies::Hobbit.location #=> "The Shire"

@faker.version 1.8.0

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

Produces a quote from The Hobbit.

@return [String]

@example

Faker::Movies::Hobbit.quote
  #=> "Never laugh at live dragons, Bilbo you fool!"

@faker.version 1.8.0

# File lib/faker/movies/hobbit.rb, line 43
def quote
  fetch('hobbit.quote')
end
thorins_company() click to toggle source

Produces the name of one of the 13 dwarves from the Company, or Gandalf or Bilbo.

@return [String]

@example

Faker::Movies::Hobbit.thorins_company #=> "Thorin Oakenshield"

@faker.version 1.8.0

# File lib/faker/movies/hobbit.rb, line 29
def thorins_company
  fetch('hobbit.thorins_company')
end