Sha256: 43a32aa3fcb210c6f9fdbb166f5e4b2843bb6fa044368948e8956307902ab83a

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

require_relative "simple_inspect"

module Itch
  # Data container for single review
  class Review
    include SimpleInspect

    attr_reader :id, :user_name, :user_id, :stars, :date, :review

    # rubocop:disable Metrics/ParameterLists
    def initialize(user_name:, user_id:, stars:, date:, review:, id: nil)
      @id = id
      @user_name = user_name
      @user_id = user_id
      @stars = stars
      @date = date
      @review = review
    end
    # rubocop:enable Metrics/ParameterLists
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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