class Google::Apis::GamesV1::PlayerScore
This is a JSON template for a player score.
Attributes
The formatted score for this player score. Corresponds to the JSON property `formattedScore` @return [String]
Uniquely identifies the type of this resource. Value is always the fixed string games#playerScore. Corresponds to the JSON property `kind` @return [String]
The numerical value for this player score. Corresponds to the JSON property `score` @return [String]
Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. Corresponds to the JSON property `scoreTag` @return [String]
The time span for this player score. Possible values are:
-
“ALL_TIME” - The score is an all-time score.
-
“WEEKLY” - The score is a weekly score.
-
“DAILY” - The score is a daily score.
Corresponds to the JSON property `timeSpan` @return [String]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 2525 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 2530 def update!(**args) @formatted_score = args[:formatted_score] if args.key?(:formatted_score) @kind = args[:kind] if args.key?(:kind) @score = args[:score] if args.key?(:score) @score_tag = args[:score_tag] if args.key?(:score_tag) @time_span = args[:time_span] if args.key?(:time_span) end