Module: GenshinData::Weapons

Defined in:
lib/genshin_data/weapons.rb,
lib/genshin_data/weapons/weapon_data.rb,
lib/genshin_data/weapons/weapon_data/bows.rb,
lib/genshin_data/weapons/weapon_data/swords.rb,
lib/genshin_data/weapons/weapon_data/polearms.rb,
lib/genshin_data/weapons/weapon_data/catalysts.rb,
lib/genshin_data/weapons/weapon_data/claymores.rb

Overview

Module for accessing weapon data

Defined Under Namespace

Modules: WeaponData

Class Method Summary collapse

Class Method Details

.allObject



9
10
11
12
13
14
15
16
17
# File 'lib/genshin_data/weapons.rb', line 9

def all
  [
    bows,
    catalysts,
    claymores,
    polearms,
    swords
  ].flatten.sort { |x, y| x.kamera_key <=> y.kamera_key }
end

.bowsObject



19
20
21
# File 'lib/genshin_data/weapons.rb', line 19

def bows
  WeaponData::Bows.all
end

.catalystsObject



23
24
25
# File 'lib/genshin_data/weapons.rb', line 23

def catalysts
  WeaponData::Catalysts.all
end

.claymoresObject



27
28
29
# File 'lib/genshin_data/weapons.rb', line 27

def claymores
  WeaponData::Claymores.all
end

.polearmsObject



31
32
33
# File 'lib/genshin_data/weapons.rb', line 31

def polearms
  WeaponData::Polearms.all
end

.swordsObject



35
36
37
# File 'lib/genshin_data/weapons.rb', line 35

def swords
  WeaponData::Swords.all
end