class Faker::Sports::Basketball

Public Class Methods

coach() click to toggle source

Produces the name of a basketball coach.

@return [String]

@example

Faker::Sports::Basketball.coach #=> "Gregg Popovich"

@faker.version 1.9.4

# File lib/faker/sports/basketball.rb, line 42
def coach
  fetch('basketball.coaches')
end
player() click to toggle source

Produces the name of a basketball player.

@return [String]

@example

Faker::Sports::Basketball.player #=> "LeBron James"

@faker.version 1.9.4

# File lib/faker/sports/basketball.rb, line 29
def player
  fetch('basketball.players')
end
position() click to toggle source

Produces a position in basketball.

@return [String]

@example

Faker::Sports::Basketball.position #=> "Point Guard"

@faker.version 1.9.4

# File lib/faker/sports/basketball.rb, line 55
def position
  fetch('basketball.positions')
end
team() click to toggle source

Produces the name of a basketball team.

@return [String]

@example

Faker::Sports::Basketball.team #=> "Golden State Warriors"

@faker.version 1.9.4

# File lib/faker/sports/basketball.rb, line 16
def team
  fetch('basketball.teams')
end