lib/triviacrack/profile.rb in triviacrack-0.6.0 vs lib/triviacrack/profile.rb in triviacrack-0.7.0

- old
+ new

@@ -1,9 +1,10 @@ +# frozen_string_literal: true + # Public: An object containing the Trivia Crack profile information of a user. module TriviaCrack class Profile - # Public: The unique identifier of the user. attr_reader :id # Public: The user's Facebook name. attr_reader :facebook_name @@ -61,11 +62,11 @@ attr_reader :my_wins_vs_user # Public: Number of games lost against the requesting user. attr_reader :my_losses_vs_user - def initialize(id: nil, facebook_name: nil, is_friend: nil, is_blocked: nil, + def initialize(id: nil, facebook_name: nil, is_friend: nil, is_blocked: nil, # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/ParameterLists username: nil, country: nil, email: nil, last_play: nil, last_login: nil, games_won: nil, games_lost: nil, games_resigned: nil, consecutive_games_won: nil, consecutive_answers_correct: nil, level: nil, challenges_won: nil, challenges_lost: nil, categories: nil, @@ -89,8 +90,7 @@ @challenges_lost = challenges_lost @categories = categories @my_wins_vs_user = my_wins_vs_user @my_losses_vs_user = my_losses_vs_user end - end end