Back to Faker

Faker::Games::Dota

doc/games/dota.md

3.8.0557 B
Original Source

Faker::Games::Dota

Available since version 1.9.0.

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

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

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

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

# Random quote
# by default if you don't pass the hero parameter, the quote method will set hero as 'abbadon'
Faker::Games::Dota.quote #=> "You have called death upon yourself."
Faker::Games::Dota.quote(hero: 'alchemist') #=> "Better living through alchemy!"