Class: Google::Apis::GamesV1::Played
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::Played
- 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
-
#auto_matched ⇒ Boolean
(also: #auto_matched?)
True if the player was auto-matched with the currently authenticated user.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#time_millis ⇒ Fixnum
The last time the player played the game in milliseconds since the epoch in UTC.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Played
constructor
A new instance of Played.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_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
1954 1955 1956 |
# File 'generated/google/apis/games_v1/classes.rb', line 1954 def auto_matched @auto_matched end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#played.
Corresponds to the JSON property kind
1961 1962 1963 |
# File 'generated/google/apis/games_v1/classes.rb', line 1961 def kind @kind 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
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 |