Sha256: f8fa24a812f5b30d538be041446b92ee0ea3fd9ce992d1618df9d2143ad1c8af

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

module ValorantDailyStore
  class Skin
    def initialize(name:, price:, photo:, video:)
      @name = name
      @price = price
      @photo = photo
      @video = video
    end

    def to_hash
      {
        name:,
        price:,
        photo:,
        video:
      }
    end

    def to_json(...)
      to_hash.to_json(...)
    end

    attr_reader :name, :price, :photo, :video
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
valorant_daily_store-1.0.6 lib/valorant_daily_store/skin.rb
valorant_daily_store-1.0.5 lib/valorant_daily_store/skin.rb