class Google::Apis::GamesV1::Played

This is a JSON template for metadata about a player playing a game with the currently authenticated user.

Attributes

auto_matched[RW]

True if the player was auto-matched with the currently authenticated user. Corresponds to the JSON property `autoMatched` @return [Boolean]

auto_matched?[RW]

True if the player was auto-matched with the currently authenticated user. Corresponds to the JSON property `autoMatched` @return [Boolean]

kind[RW]

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

time_millis[RW]

The last time the player played the game in milliseconds since the epoch in UTC. Corresponds to the JSON property `timeMillis` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 1974
def update!(**args)
  @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
  @kind = args[:kind] if args.key?(:kind)
  @time_millis = args[:time_millis] if args.key?(:time_millis)
end