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, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.bookString

Produces the name of a book from The Witcher.

Examples:

Faker::Games::Witcher.book #=> "Sword of Destiny"

Returns:

  • (String)

Available since:

  • 2.18.0



120
121
122
# File 'lib/faker/games/witcher.rb', line 120

def book
  fetch('games.witcher.books')
end

.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

.potionString

Produces the name of a potion from The Witcher.

Examples:

Faker::Games::Witcher.potion #=> "Gadwall"

Returns:

  • (String)

Available since:

  • 2.18.0



107
108
109
# File 'lib/faker/games/witcher.rb', line 107

def potion
  fetch('games.witcher.potions')
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

.signString

Produces the name of a sign from The Witcher.

Examples:

Faker::Games::Witcher.sign #=> "Igni"

Returns:

  • (String)

Available since:

  • 2.18.0



94
95
96
# File 'lib/faker/games/witcher.rb', line 94

def sign
  fetch('games.witcher.signs')
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