Sha256: f29e32223df0bfe0d6156d4f805db4647c55b7e56525e841586c419e91b08f30
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true module GenshinData # Manager for all characters and attributes module Materials require_relative "materials/development" require_relative "materials/standard" class << self def all [Development.all, Standard.all].flatten.sort { |x, y| x.name <=> y.name } end def for_family(family) all.select { |m| m.family == family } end def for_kamera_key(key) all.select { |m| m.kamera_key == key } end def for_name(name) all.select { |m| m.name == name } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teyvatdb-0.5.2.4 | lib/genshin_data/materials.rb |
teyvatdb-0.5.2.3 | lib/genshin_data/materials.rb |
teyvatdb-0.5.2.2 | lib/genshin_data/materials.rb |