class Faker::Games::Dota
Public Class Methods
Source
# File lib/faker/games/dota.rb, line 16 def building fetch('games.dota.building') end
Produces the name of a building from Dota
.
@return [String]
@example
Faker::Games::Dota.building #=> "Tower"
@faker.version 1.9.0
Source
# File lib/faker/games/dota.rb, line 29 def hero fetch('games.dota.hero') end
Produces the name of a hero from Dota
.
@return [String]
@example
Faker::Games::Dota.hero #=> "Abaddon"
@faker.version 1.9.0
Source
# File lib/faker/games/dota.rb, line 42 def item fetch('games.dota.item') end
Produces the name of an item from Dota
.
@return [String]
@example
Faker::Games::Dota.item #=> "Armlet of Mordiggian"
@faker.version 1.9.0
Source
# File lib/faker/games/dota.rb, line 68 def player fetch('games.dota.player') end
Produces the name of a professional Dota
player.
@return [String]
@example
Faker::Games::Dota.player #=> "Dendi"
@faker.version 1.9.0
Source
# File lib/faker/games/dota.rb, line 83 def quote(hero: 'abaddon') fetch("games.dota.#{hero}.quote") end
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