| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | module Faker |
| 4 | class Movies |
| 5 | class LordOfTheRings < Base |
| 6 | class << self |
| 7 | ## |
| 8 | # Produces a character from Lord of the Rings. |
| 9 | # |
| 10 | # @return [String] |
| 11 | # |
| 12 | # @example |
| 13 | # Faker::Movies::LordOfTheRings.character #=> "Legolas" |
| 14 | # |
| 15 | # @faker.version 1.7.0 |
| 16 | def character |
| 17 | fetch('tolkien.lord_of_the_rings.characters') |
| 18 | end |
| 19 | |
| 20 | ## |
| 21 | # Produces a location from Lord of the Rings. |
| 22 | # |
| 23 | # @return [String] |
| 24 | # |
| 25 | # @example |
| 26 | # Faker::Movies::LordOfTheRings.location #=> "Helm's Deep" |
| 27 | # |
| 28 | # @faker.version 1.7.0 |
| 29 | def location |
| 30 | fetch('tolkien.lord_of_the_rings.locations') |
| 31 | end |
| 32 | |
| 33 | ## |
| 34 | # Produces a quote from Lord of the Rings. |
| 35 | # |
| 36 | # @return [String] |
| 37 | # |
| 38 | # @example |
| 39 | # Faker::Movies::LordOfTheRings.quote |
| 40 | # #=> "I wish the Ring had never come to me. I wish none of this had happened." |
| 41 | # |
| 42 | # @faker.version 1.9.0 |
| 43 | def quote |
| 44 | fetch('tolkien.lord_of_the_rings.quotes') |
| 45 | end |
| 46 | end |
| 47 | end |
| 48 | end |
| 49 | end |