Class: Google::Apis::GamesManagementV1management::GamesPlayedResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_matchedBoolean Also known as: auto_matched?

True if the player was auto-matched with the currently authenticated user. Corresponds to the JSON property autoMatched

Returns:

  • (Boolean)


155
156
157
# File 'generated/google/apis/games_management_v1management/classes.rb', line 155

def auto_matched
  @auto_matched
end

#time_millisFixnum

The last time the player played the game in milliseconds since the epoch in UTC. Corresponds to the JSON property timeMillis

Returns:

  • (Fixnum)


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