class Google::Apis::GamesV1::ScoreSubmission
This is a JSON template for a request to submit a score to leaderboards.
Attributes
Uniquely identifies the type of this resource. Value is always the fixed string games#scoreSubmission. Corresponds to the JSON property `kind` @return [String]
The leaderboard this score is being submitted to. Corresponds to the JSON property `leaderboardId` @return [String]
The new score being submitted. 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]
Signature Values will contain URI-safe characters as defined by section 2.3 of RFC 3986. Corresponds to the JSON property `signature` @return [String]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 3853 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 3858 def update!(**args) @kind = args[:kind] if args.key?(:kind) @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) @score = args[:score] if args.key?(:score) @score_tag = args[:score_tag] if args.key?(:score_tag) @signature = args[:signature] if args.key?(:signature) end