lib/genshin_data/materials/standard.rb in teyvatdb-0.1.18 vs lib/genshin_data/materials/standard.rb in teyvatdb-0.2.0

- old
+ new

@@ -1,41 +1,46 @@ -module GenshinData::Materials - module Standard - require_relative "standard/cooking_material_data" - require_relative "standard/crafting_material_data" - require_relative "standard/fishing_material_data" - require_relative "standard/forging_material_data" - require_relative "standard/furniture_material_data" +# frozen_string_literal: true - class << self - def all - [ - crafting_materials, - cooking_materials, - fishing_materials, - forging_materials, - furniture_materials, - ].flatten.sort { |x, y| x.name <=> y.name } - end +module GenshinData + module Materials + # Top level access class for all non development materials + module Standard + require_relative "standard/cooking_material_data" + require_relative "standard/crafting_material_data" + require_relative "standard/fishing_material_data" + require_relative "standard/forging_material_data" + require_relative "standard/furniture_material_data" - def crafting_materials - CraftingMaterialData.all - end + class << self + def all + [ + crafting_materials, + cooking_materials, + fishing_materials, + forging_materials, + furniture_materials + ].flatten.sort { |x, y| x.name <=> y.name } + end - def cooking_materials - CookingMaterialsData.all - end + def crafting_materials + CraftingMaterialData.all + end - def fishing_materials - FishingMaterialData.all - end + def cooking_materials + CookingMaterialsData.all + end - def forging_materials - ForgingMaterialData.all - end + def fishing_materials + FishingMaterialData.all + end - def furniture_materials - FurnitureMaterialData.all + def forging_materials + ForgingMaterialData.all + end + + def furniture_materials + FurnitureMaterialData.all + end end end end -end \ No newline at end of file +end