Class: Faker::Sports::Basketball

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

.coachObject


15
16
17
# File 'lib/faker/sports/basketball.rb', line 15

def coach
  fetch('basketball.coaches')
end

.playerObject


11
12
13
# File 'lib/faker/sports/basketball.rb', line 11

def player
  fetch('basketball.players')
end

.positionObject


19
20
21
# File 'lib/faker/sports/basketball.rb', line 19

def position
  fetch('basketball.positions')
end

.teamObject


7
8
9
# File 'lib/faker/sports/basketball.rb', line 7

def team
  fetch('basketball.teams')
end