Class: Faker::Games::ClashOfClans

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

.defensive_buildingString

Produces the name of a defensive buiding from Clash Of Clans.

Examples:

Faker::Games::ClashOfClans.defensive_building #=> "Cannon"

Returns:

  • (String)

Available since:

  • next


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

def defensive_building
  fetch('games.clash_of_clans.defensive_buildings')
end

.rankString

Produces the name of a rank from Clash Of Clans.

Examples:

Faker::Games::ClashOfClans.rank #=> "Legend"

Returns:

  • (String)

Available since:

  • next


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

def rank
  fetch('games.clash_of_clans.ranks')
end

.troopString

Produces the name of a troop from Clash of Clans.

Examples:

Faker::Games::ClashOfClans.troop #=> "Barbarian"

Returns:

  • (String)

Available since:

  • next


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

def troop
  fetch('games.clash_of_clans.troops')
end