Sha256: b03238187bf0de5a04863a6bdeb144075fe66d40976d475012a4c7b0c5dba8ea

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

require_relative "simple_inspect"

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

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

    # rubocop:disable Metrics/ParameterLists
    def initialize(id, title, purchases, price, earnings)
      @id = id
      @title = title
      @purchases = purchases
      @price = price
      @earnings = earnings
    end
    # rubocop:enable Metrics/ParameterLists

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itch_client-0.3.0 lib/itch/bundle.rb