Class: Faker::Movies::LordOfTheRings

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

Constant Summary

Constants inherited from Base

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

.characterString

Produces a character from Lord of the Rings.

Examples:

Faker::Movies::LordOfTheRings.character #=> "Legolas"

Returns:

  • (String)

Available since:

  • 1.7.0


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

def character
  fetch('lord_of_the_rings.characters')
end

.locationString

Produces a location from Lord of the Rings.

Examples:

Faker::Movies::LordOfTheRings.location #=> "Helm's Deep"

Returns:

  • (String)

Available since:

  • 1.7.0


29
30
31
# File 'lib/faker/movies/lord_of_the_rings.rb', line 29

def location
  fetch('lord_of_the_rings.locations')
end

.quoteString

Produces a quote from Lord of the Rings.

Examples:

Faker::Movies::LordOfTheRings.quote
  #=> "I wish the Ring had never come to me. I wish none of this had happened."

Returns:

  • (String)

Available since:

  • 1.9.0


43
44
45
# File 'lib/faker/movies/lord_of_the_rings.rb', line 43

def quote
  fetch('lord_of_the_rings.quotes')
end