Class: Faker::Games::Dota

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/dota.rb

Constant Summary

Constants inherited from Base

Base::Letters, 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

.heroObject


7
8
9
# File 'lib/faker/games/dota.rb', line 7

def hero
  fetch('games.dota.hero')
end

.itemObject


11
12
13
# File 'lib/faker/games/dota.rb', line 11

def item
  fetch('games.dota.item')
end

.playerObject


19
20
21
# File 'lib/faker/games/dota.rb', line 19

def player
  fetch('games.dota.player')
end

.quote(hero: 'abaddon') ⇒ Object


23
24
25
# File 'lib/faker/games/dota.rb', line 23

def quote(hero: 'abaddon')
  fetch("games.dota.#{hero}.quote")
end

.teamObject


15
16
17
# File 'lib/faker/games/dota.rb', line 15

def team
  fetch('games.dota.team')
end