Class: Faker::Esport

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

.eventString

Produces the name of an eSports event.

Examples:

Faker::Esport.event #=> "ESL Cologne"

Returns:

  • (String)

Available since:

  • 1.7.0



54
55
56
# File 'lib/faker/default/esport.rb', line 54

def event
  fetch('esport.events')
end

.gameString

Produces the name of a game played as an eSport.

Examples:

Faker::Esport.game #=> "Dota 2"

Returns:

  • (String)

Available since:

  • 1.7.0



67
68
69
# File 'lib/faker/default/esport.rb', line 67

def game
  fetch('esport.games')
end

.leagueString

Produces the name of an eSports league.

Examples:

Faker::Esport.league #=> "IEM"

Returns:

  • (String)

Available since:

  • 1.7.0



41
42
43
# File 'lib/faker/default/esport.rb', line 41

def league
  fetch('esport.leagues')
end

.playerString

Produces the name of a professional eSports player.

Examples:

Faker::Esport.player #=> "Crimsix"

Returns:

  • (String)

Available since:

  • 1.7.0



15
16
17
# File 'lib/faker/default/esport.rb', line 15

def player
  fetch('esport.players')
end

.teamString

Produces the name of an eSports team.

Examples:

Faker::Esport.team #=> "CLG"

Returns:

  • (String)

Available since:

  • 1.7.0



28
29
30
# File 'lib/faker/default/esport.rb', line 28

def team
  fetch('esport.teams')
end