class Faker::Sports::Football

Public Class Methods

coach() click to toggle source

Produces the name of a football coach.

@return [String]

@example

Faker::Sports::Football.coach #=> "Jose Mourinho"

@faker.version 1.9.0

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

Produces a football competition.

@return [String]

@example

Faker::Sports::Football.competition #=> "FIFA World Cup"

@faker.version 1.9.0

# File lib/faker/sports/football.rb, line 55
def competition
  fetch('football.competitions')
end
player() click to toggle source

Produces the name of a football player.

@return [String]

@example

Faker::Sports::Football.player #=> "Lionel Messi"

@faker.version 1.9.0

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

Produces a position in football.

@return [String]

@example

Faker::Sports::Football.position #=> "Defensive Midfielder"

@faker.version 1.9.2

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

Produces the name of a football team.

@return [String]

@example

Faker::Sports::Football.team #=> "Manchester United"

@faker.version 1.9.0

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