Class: Faker::Games::LeagueOfLegends

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

.championString

Produces the name of a champion from League of Legends.

Examples:

Faker::Games::LeagueOfLegends.champion #=> "Jarvan IV"

Returns:

  • (String)

Available since:

  • 1.8.0



16
17
18
# File 'lib/faker/games/league_of_legends.rb', line 16

def champion
  fetch('games.league_of_legends.champion')
end

.locationString

Produces a location from League of Legends.

Examples:

Faker::Games::LeagueOfLegends.location #=> "Demacia"

Returns:

  • (String)

Available since:

  • 1.8.0



29
30
31
# File 'lib/faker/games/league_of_legends.rb', line 29

def location
  fetch('games.league_of_legends.location')
end

.masteriesString

Produces a mastery from League of Legends.

Examples:

Faker::Games::LeagueOfLegends.masteries #=> "Double Edged Sword"

Returns:

  • (String)

Available since:

  • 1.8.0



68
69
70
# File 'lib/faker/games/league_of_legends.rb', line 68

def masteries
  fetch('games.league_of_legends.masteries')
end

.quoteString

Produces a quote from League of Legends.

Examples:

Faker::Games::LeagueOfLegends.quote #=> "Purge the unjust."

Returns:

  • (String)

Available since:

  • 1.8.0



42
43
44
# File 'lib/faker/games/league_of_legends.rb', line 42

def quote
  fetch('games.league_of_legends.quote')
end

.rankString

Produces a rank from League of Legends.

Examples:

Faker::Games::LeagueOfLegends.rank #=> "Bronze V"

Returns:

  • (String)

Available since:

  • 1.8.0



81
82
83
# File 'lib/faker/games/league_of_legends.rb', line 81

def rank
  fetch('games.league_of_legends.rank')
end

.summoner_spellString

Produces a summoner spell from League of Legends.

Examples:

Faker::Games::LeagueOfLegends.summoner_spell #=> "Flash"

Returns:

  • (String)

Available since:

  • 1.8.0



55
56
57
# File 'lib/faker/games/league_of_legends.rb', line 55

def summoner_spell
  fetch('games.league_of_legends.summoner_spell')
end