Class: Faker::Games::Zelda

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/zelda.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

.characterString

Produces the name of a character from the Legend of Zelda games.

Examples:

Faker::Games::Zelda.character #=> "Link"

Returns:

  • (String)

Available since:

  • 1.7.3



30
31
32
# File 'lib/faker/games/zelda.rb', line 30

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

.gameString

Produces the name of a Legend of Zelda game.

Examples:

Faker::Games::Zelda.game #=> "Breath of the Wild"

Returns:

  • (String)

Available since:

  • 1.7.3



17
18
19
# File 'lib/faker/games/zelda.rb', line 17

def game
  fetch('games.zelda.games')
end

.itemString

Produces the name of an item from the Legend of Zelda games.

Examples:

Faker::Games::Zelda.item #=> "Boomerang"

Returns:

  • (String)

Available since:

  • 1.7.3



56
57
58
# File 'lib/faker/games/zelda.rb', line 56

def item
  fetch('games.zelda.items')
end

.locationString

Produces the name of a character from the Legend of Zelda games.

Examples:

Faker::Games::Zelda.location #=> "Hyrule Castle"

Returns:

  • (String)

Available since:

  • 1.7.3



43
44
45
# File 'lib/faker/games/zelda.rb', line 43

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