lib/itch/bundle.rb in itch_client-0.3.0 vs lib/itch/bundle.rb in itch_client-0.4.0
- old
+ new
@@ -1,22 +1,22 @@
+# 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
- # 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