Sha256: 9e50de0d109ede191c7a0e0c4052da250849a84fcbfbae30e255081bbad9304a

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

require "pry"
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.4 lib/valorant_daily_store/skin.rb
valorant_daily_store-1.0.3 lib/valorant_daily_store/skin.rb