class Faker::Games::Dota

Public Class Methods

building() click to toggle source

Produces the name of a building from Dota.

@return [String]

@example

Faker::Games::Dota.building #=> "Tower"

@faker.version 1.9.0

# File lib/faker/games/dota.rb, line 16
def building
  fetch('games.dota.building')
end
hero() click to toggle source

Produces the name of a hero from Dota.

@return [String]

@example

Faker::Games::Dota.hero #=> "Abaddon"

@faker.version 1.9.0

# File lib/faker/games/dota.rb, line 29
def hero
  fetch('games.dota.hero')
end
item() click to toggle source

Produces the name of an item from Dota.

@return [String]

@example

Faker::Games::Dota.item #=> "Armlet of Mordiggian"

@faker.version 1.9.0

# File lib/faker/games/dota.rb, line 42
def item
  fetch('games.dota.item')
end
player() click to toggle source

Produces the name of a professional Dota player.

@return [String]

@example

Faker::Games::Dota.player #=> "Dendi"

@faker.version 1.9.0

# File lib/faker/games/dota.rb, line 68
def player
  fetch('games.dota.player')
end
quote(legacy_hero = NOT_GIVEN, hero: 'abaddon') click to toggle source

Produces the name of a hero from Dota.

@param hero [String] The name of a Dota hero. @return [String]

@example

Faker::Games::Dota.quote #=> "You have called death upon yourself."
Faker::Games::Dota.quote(hero: 'alchemist') #=> "Better living through alchemy!"

@faker.version 1.9.0

# File lib/faker/games/dota.rb, line 83
def quote(legacy_hero = NOT_GIVEN, hero: 'abaddon')
  warn_for_deprecated_arguments do |keywords|
    keywords << :hero if legacy_hero != NOT_GIVEN
  end

  fetch("games.dota.#{hero}.quote")
end
team() click to toggle source

Produces the name of a professional Dota team.

@return [String]

@example

Faker::Games::Dota.team #=> "Evil Geniuses"

@faker.version 1.9.0

# File lib/faker/games/dota.rb, line 55
def team
  fetch('games.dota.team')
end