Sha256: 3dba9357ec53909dcc49d97ba10ceaec8e6428636765cc2e1ab0d9b0024a60f8

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

require_relative "simple_inspect"

module Itch
  # Data container for single bundle
  class Bundle
    include SimpleInspect

    attr_accessor :id, :title, :games, :purchases, :price, :earnings

    def initialize(id, title, purchases, price, earnings)
      @id = id
      @title = title
      @purchases = purchases
      @price = price
      @earnings = earnings
    end

    def url
      format(Itch::URL::BUNDLE, id: @id)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
itch_client-0.4.3 lib/itch/bundle.rb
itch_client-0.4.2 lib/itch/bundle.rb
itch_client-0.4.1 lib/itch/bundle.rb
itch_client-0.4.0 lib/itch/bundle.rb