Class: Faker::Games::Tarkov

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/tarkov.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.bossString

Produces a random boss from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.boss #=> "Tagilla"

Returns:

  • (String)

Available since:

  • next



68
69
70
# File 'lib/faker/games/tarkov.rb', line 68

def boss
  fetch('tarkov.bosses')
end

.factionString

Produces a random faction from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.faction #=> "USEC"

Returns:

  • (String)

Available since:

  • next



81
82
83
# File 'lib/faker/games/tarkov.rb', line 81

def faction
  fetch('tarkov.factions')
end

.fence_questString

Produces a random quest from Fence from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.fence_quest #=> "Compensation for Damage - Wager"

Returns:

  • (String)

Available since:

  • next



199
200
201
# File 'lib/faker/games/tarkov.rb', line 199

def fence_quest
  fetch('tarkov.quests.fence')
end

.itemString

Produces a random item from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.item #=> "Diary"

Returns:

  • (String)

Available since:

  • next



42
43
44
# File 'lib/faker/games/tarkov.rb', line 42

def item
  fetch('tarkov.items')
end

.jaeger_questString

Produces a random quest from Jaeger from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.jaeger_quest #=> "The Tarkov Shooter - Part 1"

Returns:

  • (String)

Available since:

  • next



186
187
188
# File 'lib/faker/games/tarkov.rb', line 186

def jaeger_quest
  fetch('tarkov.quests.jaeger')
end

.locationString

Produces a random location from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.location #=> "Customs"

Returns:

  • (String)

Available since:

  • next



16
17
18
# File 'lib/faker/games/tarkov.rb', line 16

def location
  fetch('tarkov.locations')
end

.mechanic_questString

Produces a random quest from Mechanic from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.mechanic_quest #=> "Signal - Part 4"

Returns:

  • (String)

Available since:

  • next



160
161
162
# File 'lib/faker/games/tarkov.rb', line 160

def mechanic_quest
  fetch('tarkov.quests.mechanic')
end

.peacekeeper_questString

Produces a random quest from Peacekeeper from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.peacekeeper_quest #=> "Overpopulation"

Returns:

  • (String)

Available since:

  • next



147
148
149
# File 'lib/faker/games/tarkov.rb', line 147

def peacekeeper_quest
  fetch('tarkov.quests.peacekeeper')
end

.prapor_questString

Produces a random quest from Prapor from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.prapor_quest #=> "Easy Job - Part 2

Returns:

  • (String)

Available since:

  • next



108
109
110
# File 'lib/faker/games/tarkov.rb', line 108

def prapor_quest
  fetch('tarkov.quests.prapor')
end

.questString

Produces a random quest from a random trader from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.quest #=> "The Key to Success"

Returns:

  • (String)

Available since:

  • next



94
95
96
97
# File 'lib/faker/games/tarkov.rb', line 94

def quest
  @traders = %w[prapor therapist skier peacekeeper mechanic ragman jaeger fence]
  fetch("tarkov.quests.#{@traders.sample}")
end

.ragman_questString

Produces a random quest from Ragman from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.ragman_quest #=> "Hot Delivery"

Returns:

  • (String)

Available since:

  • next



173
174
175
# File 'lib/faker/games/tarkov.rb', line 173

def ragman_quest
  fetch('tarkov.quests.ragman')
end

.skier_questString

Produces a random quest from Skier from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.skier_quest #=> "Safe Corridor"

Returns:

  • (String)

Available since:

  • next



134
135
136
# File 'lib/faker/games/tarkov.rb', line 134

def skier_quest
  fetch('tarkov.quests.skier')
end

.therapist_questString

Produces a random quest from Therapist from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.therapist_quest #=> "Supply Plans"

Returns:

  • (String)

Available since:

  • next



121
122
123
# File 'lib/faker/games/tarkov.rb', line 121

def therapist_quest
  fetch('tarkov.quests.therapist')
end

.traderString

Produces a random trader from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.trader #=> "Prapor"

Returns:

  • (String)

Available since:

  • next



29
30
31
# File 'lib/faker/games/tarkov.rb', line 29

def trader
  fetch('tarkov.traders')
end

.weaponString

Produces a random weapon from Escape from Tarkov.

Examples:

Faker::Games::Tarkov.weapon #=> "AK-74N"

Returns:

  • (String)

Available since:

  • next



55
56
57
# File 'lib/faker/games/tarkov.rb', line 55

def weapon
  fetch('tarkov.weapons')
end