Sha256: 7ce348179c376fe81e9b0b2273f9891e2b3f812dc4e8865e3fe2980c04532ba4

Contents?: true

Size: 1.25 KB

Versions: 26

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

module GenshinObject
  # Base class to represent various Genshin Characters
  class Character
    attr_accessor :kamera_key, :name, :nation_name, :rarity, :element, :weapon_type,
                  :talent_book_name, :talent_rare_material_name, :talent_boss_material_name,
                  :ascension_boss_material_name, :ascension_gathering_material_name, :ascension_enemy_material_name

    def initialize(kamera_key:, name:, nation_name:, rarity:, element:, weapon_type:, talent_book_name:,
                   talent_rare_material_name:, talent_boss_material_name:, ascension_boss_material_name:,
                   ascension_gathering_material_name:, ascension_enemy_material_name:)
      @kamera_key = kamera_key
      @name = name
      @nation_name = nation_name
      @rarity = rarity
      @element = element
      @weapon_type = weapon_type
      @talent_book_name = talent_book_name
      @talent_rare_material_name = talent_rare_material_name
      @talent_boss_material_name = talent_boss_material_name
      @ascension_boss_material_name = ascension_boss_material_name
      @ascension_gathering_material_name = ascension_gathering_material_name
      @ascension_enemy_material_name = ascension_enemy_material_name
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
teyvatdb-0.5.2.4 lib/genshin_object/character.rb
teyvatdb-0.5.2.3 lib/genshin_object/character.rb
teyvatdb-0.5.2.2 lib/genshin_object/character.rb
teyvatdb-0.5.2.1 lib/genshin_object/character.rb
teyvatdb-0.5.2 lib/genshin_object/character.rb
teyvatdb-0.5.1.1 lib/genshin_object/character.rb
teyvatdb-0.5.1 lib/genshin_object/character.rb
teyvatdb-0.5.0 lib/genshin_object/character.rb
teyvatdb-0.4.7.1 lib/genshin_object/character.rb
teyvatdb-0.4.7 lib/genshin_object/character.rb
teyvatdb-0.4.6.1 lib/genshin_object/character.rb
teyvatdb-0.4.6 lib/genshin_object/character.rb
teyvatdb-0.4.5.1 lib/genshin_object/character.rb
teyvatdb-0.2.4 lib/genshin_object/character.rb
teyvatdb-0.2.3 lib/genshin_object/character.rb
teyvatdb-0.2.2.1 lib/genshin_object/character.rb
teyvatdb-0.2.2 lib/genshin_object/character.rb
teyvatdb-0.2.1.1 lib/genshin_object/character.rb
teyvatdb-0.2.1 lib/genshin_object/character.rb
teyvatdb-0.2.0 lib/genshin_object/character.rb