Class: Faker::JapaneseMedia::DragonBall

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/japanese_media/dragon_ball.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, shuffle!, translate, unique, with_locale

Class Method Details

.characterString

Produces the name of a character from Dragon Ball.

Examples:

Faker::Games::DragonBall.character #=> "Goku"

Returns:

  • (String)

Available since:

  • 1.8.0



16
17
18
# File 'lib/faker/japanese_media/dragon_ball.rb', line 16

def character
  fetch('dragon_ball.characters')
end

.planetString

Produces the name of a planet from Dragon Ball.

Examples:

Faker::Games::DragonBall.planet #=> "Namek"

Returns:

  • (String)

Available since:

  • next



42
43
44
# File 'lib/faker/japanese_media/dragon_ball.rb', line 42

def planet
  fetch('dragon_ball.planets')
end

.raceString

Produces the name of a race from Dragon Ball.

Examples:

Faker::Games::DragonBall.race #=> "Saiyan"

Returns:

  • (String)

Available since:

  • next



29
30
31
# File 'lib/faker/japanese_media/dragon_ball.rb', line 29

def race
  fetch('dragon_ball.races')
end