Class: Faker::JapaneseMedia::OnePiece

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

.akuma_no_miString

Produces an akuma no mi from One Piece.

Examples:

Faker::JapaneseMedia::OnePiece.akuma_no_mi #=> "Gomu Gomu no Mi"

Returns:

  • (String)

Available since:

  • 1.8.5


81
82
83
# File 'lib/faker/japanese_media/one_piece.rb', line 81

def akuma_no_mi
  fetch('one_piece.akumas_no_mi')
end

.characterString

Produces a character from One Piece.

Examples:

Faker::JapaneseMedia::OnePiece.character #=> "Monkey D. Luffy"

Returns:

  • (String)

Available since:

  • 1.8.5


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

def character
  fetch('one_piece.characters')
end

.islandString

Produces an island from One Piece.

Examples:

Faker::JapaneseMedia::OnePiece.island #=> "Laftel"

Returns:

  • (String)

Available since:

  • 1.8.5


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

def island
  fetch('one_piece.islands')
end

.locationString

Produces a location from One Piece.

Examples:

Faker::JapaneseMedia::OnePiece.location #=> "Foosha Village"

Returns:

  • (String)

Available since:

  • 1.8.5


55
56
57
# File 'lib/faker/japanese_media/one_piece.rb', line 55

def location
  fetch('one_piece.locations')
end

.quoteString

Produces a quote from One Piece.

Examples:

Faker::JapaneseMedia::OnePiece.quote #=> "ONE PIECE IS REAL!"

Returns:

  • (String)

Available since:

  • 1.8.5


68
69
70
# File 'lib/faker/japanese_media/one_piece.rb', line 68

def quote
  fetch('one_piece.quotes')
end

.seaString

Produces a sea from One Piece.

Examples:

Faker::JapaneseMedia::OnePiece.sea #=> "East Blue"

Returns:

  • (String)

Available since:

  • 1.8.5


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

def sea
  fetch('one_piece.seas')
end