Class: Faker::Games::Witcher

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/witcher.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 the name of a character from The Witcher.

Examples:

Faker::Games::Witcher.character #=> "Triss Merigold"

Returns:

  • (String)

Available since:

  • 1.8.3


16
17
18
# File 'lib/faker/games/witcher.rb', line 16

def character
  fetch('games.witcher.characters')
end

.locationString

Produces the name of a location from The Witcher.

Examples:

Faker::Games::Witcher.location #=> "Novigrad"

Returns:

  • (String)

Available since:

  • 1.8.3


55
56
57
# File 'lib/faker/games/witcher.rb', line 55

def location
  fetch('games.witcher.locations')
end

.monsterString

Produces the name of a monster from The Witcher.

Examples:

Faker::Games::Witcher.monster #=> "Katakan"

Returns:

  • (String)

Available since:

  • 1.8.3


81
82
83
# File 'lib/faker/games/witcher.rb', line 81

def monster
  fetch('games.witcher.monsters')
end

.quoteString

Produces a quote from The Witcher.

Examples:

Faker::Games::Witcher.quote #=> "No Lollygagin'!"

Returns:

  • (String)

Available since:

  • 1.8.3


68
69
70
# File 'lib/faker/games/witcher.rb', line 68

def quote
  fetch('games.witcher.quotes')
end

.schoolString

Produces the name of a school from The Witcher.

Examples:

Faker::Games::Witcher.school #=> "Wolf"

Returns:

  • (String)

Available since:

  • 1.8.3


42
43
44
# File 'lib/faker/games/witcher.rb', line 42

def school
  fetch('games.witcher.schools')
end

.witcherString

Produces the name of a witcher from The Witcher.

Examples:

Faker::Games::Witcher.witcher #=> "Geralt of Rivia"

Returns:

  • (String)

Available since:

  • 1.8.3


29
30
31
# File 'lib/faker/games/witcher.rb', line 29

def witcher
  fetch('games.witcher.witchers')
end