Sha256: f2fbe9c62f8a2d1acf56c2845b7bcf80cc9d144f7712ee33ca202f6d33051b18

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

require "csv"

require_relative "simple_inspect"

module Itch
  # Data container for single reward
  class Reward
    include SimpleInspect

    attr_accessor :amount, :archived, :claimed, :description, :id, :price, :title

    # rubocop:disable Metrics/ParameterLists
    def initialize(amount:, description:, price:, title:, archived: false, claimed: 0, id: nil)
      @id = id
      @description = description
      @title = title
      @amount = amount
      @price = price
      @claimed = claimed
      @archived = archived
    end
    # rubocop:enable Metrics/ParameterLists
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
itch_client-0.4.3 lib/itch/reward.rb
itch_client-0.4.2 lib/itch/reward.rb
itch_client-0.4.1 lib/itch/reward.rb
itch_client-0.4.0 lib/itch/reward.rb
itch_client-0.3.0 lib/itch/reward.rb
itch_client-0.2.0 lib/itch/reward.rb