Module: FFaker::Game

Extended by:
Game, ModuleUtils
Included in:
Game
Defined in:
lib/ffaker/game.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#categoryObject



15
16
17
# File 'lib/ffaker/game.rb', line 15

def category
  fetch_sample(CATEGORY)
end

#mechanicObject



19
20
21
# File 'lib/ffaker/game.rb', line 19

def mechanic
  fetch_sample(MECHANIC)
end

#titleObject



8
9
10
11
12
13
# File 'lib/ffaker/game.rb', line 8

def title
  case rand(0..1)
  when 0 then simple_title
  when 1 then title_with_prefix
  end
end