Class: Google::Apis::GamesV1::ScoreSubmission
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::ScoreSubmission
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
 generated/google/apis/games_v1/representations.rb,
 generated/google/apis/games_v1/representations.rb
Overview
This is a JSON template for a request to submit a score to leaderboards.
Instance Attribute Summary collapse
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #leaderboard_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The leaderboard this score is being submitted to. 
- 
  
    
      #score  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The new score being submitted. 
- 
  
    
      #score_tag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Additional information about this score. 
- 
  
    
      #signature  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Signature Values will contain URI-safe characters as defined by section 2.3 of RFC 3986. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ScoreSubmission 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ScoreSubmission. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ScoreSubmission
Returns a new instance of ScoreSubmission
| 3889 3890 3891 | # File 'generated/google/apis/games_v1/classes.rb', line 3889 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#scoreSubmission.
Corresponds to the JSON property kind
| 3865 3866 3867 | # File 'generated/google/apis/games_v1/classes.rb', line 3865 def kind @kind end | 
#leaderboard_id ⇒ String
The leaderboard this score is being submitted to.
Corresponds to the JSON property leaderboardId
| 3870 3871 3872 | # File 'generated/google/apis/games_v1/classes.rb', line 3870 def leaderboard_id @leaderboard_id end | 
#score ⇒ Fixnum
The new score being submitted.
Corresponds to the JSON property score
| 3875 3876 3877 | # File 'generated/google/apis/games_v1/classes.rb', line 3875 def score @score end | 
#score_tag ⇒ 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
| 3881 3882 3883 | # File 'generated/google/apis/games_v1/classes.rb', line 3881 def score_tag @score_tag end | 
#signature ⇒ String
Signature Values will contain URI-safe characters as defined by section 2.3 of
RFC 3986.
Corresponds to the JSON property signature
| 3887 3888 3889 | # File 'generated/google/apis/games_v1/classes.rb', line 3887 def signature @signature end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3894 3895 3896 3897 3898 3899 3900 | # File 'generated/google/apis/games_v1/classes.rb', line 3894 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 |