class Faker::Game

Public Class Methods

genre() click to toggle source

Produces the name of a video game genre.

@return [String]

@example

Faker::Game.genre #=> "Real-time strategy"

@faker.version 1.9.4

# File lib/faker/games/game.rb, line 30
def genre
  fetch('game.genre')
end
platform() click to toggle source

Produces the name of a video game console or platform.

@return [String]

@example

Faker::Game.platform #=> "Nintendo Switch"

@faker.version 1.9.4

# File lib/faker/games/game.rb, line 43
def platform
  fetch('game.platform')
end
title() click to toggle source

Produces the name of a video game.

@return [String]

@example

Faker::Game.title #=> "Half-Life 2"

@faker.version 1.9.4

# File lib/faker/games/game.rb, line 17
def title
  fetch('game.title')
end