Class: Faker::Sports::Basketball
- Defined in:
- lib/faker/sports/basketball.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
- 
  
    
      .coach  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Produces the name of a basketball coach. 
- 
  
    
      .player  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Produces the name of a basketball player. 
- 
  
    
      .position  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Produces a position in basketball. 
- 
  
    
      .team  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Produces the name of a basketball team. 
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.coach ⇒ String
Produces the name of a basketball coach.
| 42 43 44 | # File 'lib/faker/sports/basketball.rb', line 42 def coach fetch('basketball.coaches') end | 
.player ⇒ String
Produces the name of a basketball player.
| 29 30 31 | # File 'lib/faker/sports/basketball.rb', line 29 def player fetch('basketball.players') end | 
.position ⇒ String
Produces a position in basketball.
| 55 56 57 | # File 'lib/faker/sports/basketball.rb', line 55 def position fetch('basketball.positions') end | 
.team ⇒ String
Produces the name of a basketball team.
| 16 17 18 | # File 'lib/faker/sports/basketball.rb', line 16 def team fetch('basketball.teams') end |