Class: Google::Apis::GamesV1::Played

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

Returns a new instance of Played.



1969
1970
1971
# File 'generated/google/apis/games_v1/classes.rb', line 1969

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)


1954
1955
1956
# File 'generated/google/apis/games_v1/classes.rb', line 1954

def auto_matched
  @auto_matched
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#played. Corresponds to the JSON property kind

Returns:

  • (String)


1961
1962
1963
# File 'generated/google/apis/games_v1/classes.rb', line 1961

def kind
  @kind
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)


1967
1968
1969
# File 'generated/google/apis/games_v1/classes.rb', line 1967

def time_millis
  @time_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1974
1975
1976
1977
1978
# 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