Class: Google::Apis::GamesManagementV1management::GamesPlayedResource
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesManagementV1management::GamesPlayedResource
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_management_v1management/classes.rb,
 generated/google/apis/games_management_v1management/representations.rb,
 generated/google/apis/games_management_v1management/representations.rb
Overview
This is a JSON template for metadata about a player playing a game with the currently authenticated user.
Instance Attribute Summary collapse
- 
  
    
      #auto_matched  ⇒ Boolean 
    
    
      (also: #auto_matched?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if the player was auto-matched with the currently authenticated user. 
- 
  
    
      #time_millis  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The last time the player played the game in milliseconds since the epoch in UTC. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GamesPlayedResource 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GamesPlayedResource. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GamesPlayedResource
Returns a new instance of GamesPlayedResource
| 164 165 166 | # File 'generated/google/apis/games_management_v1management/classes.rb', line 164 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#auto_matched ⇒ Boolean Also known as: auto_matched?
True if the player was auto-matched with the currently authenticated user.
Corresponds to the JSON property autoMatched
| 155 156 157 | # File 'generated/google/apis/games_management_v1management/classes.rb', line 155 def auto_matched @auto_matched end | 
#time_millis ⇒ Fixnum
The last time the player played the game in milliseconds since the epoch in
UTC.
Corresponds to the JSON property timeMillis
| 162 163 164 | # File 'generated/google/apis/games_management_v1management/classes.rb', line 162 def time_millis @time_millis end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 169 170 171 172 | # File 'generated/google/apis/games_management_v1management/classes.rb', line 169 def update!(**args) @auto_matched = args[:auto_matched] if args.key?(:auto_matched) @time_millis = args[:time_millis] if args.key?(:time_millis) end |