class Google::Apis::GamesV1::PlayerScore

A player score.

Attributes

formatted_score[RW]

The formatted score for this player score. Corresponds to the JSON property `formattedScore` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScore`. Corresponds to the JSON property `kind` @return [String]

score[RW]

The numerical value for this player score. Corresponds to the JSON property `score` @return [Fixnum]

score_tag[RW]

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]

time_span[RW]

The time span for this player score. Corresponds to the JSON property `timeSpan` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_v1/classes.rb, line 2156
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/games_v1/classes.rb, line 2161
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