class Faker::Sports::Chess
def federation
-
(String)
-
def federation Faker::Address.country_code_long end
def opening
-
(String)
-
def opening fetch('chess.openings') end
def player
-
(String)
-
def player fetch('chess.players') end
def rating(from: 2000, to: 2900)
def rating(from: 2000, to: 2900) ## # Produces a rating between two provided values. Boundaries are inclusive. # # @param from [Numeric] The lowest number to include. # @param to [Numeric] The highest number to include. # @return [Numeric] # # @example # Faker::Sports::Chess.rating #=> 2734 # Faker::Sports::Chess.rating(from: 2400, to: 2700) #=> 2580 # # @faker.version next Faker::Base.rand_in_range(from, to) end
def title
-
(String)
-
def title fetch('chess.titles') end
def tournament
def tournament ## # Produces the name of a famous chess tournament name. # # @return [String] # # @example # Faker::Chess.tournament #=> "Khanty-Mansisyk (Candidates Tournament)" # # @faker.version next fetch('chess.tournaments') end