Class: Google::Apis::GamesV1::PlayerEvent
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::PlayerEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb
Overview
An event status resource.
Instance Attribute Summary collapse
-
#definition_id ⇒ String
The ID of the event definition.
-
#formatted_num_events ⇒ String
The current number of times this event has occurred, as a string.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#num_events ⇒ Fixnum
The current number of times this event has occurred.
-
#player_id ⇒ String
The ID of the player.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlayerEvent
constructor
A new instance of PlayerEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlayerEvent
Returns a new instance of PlayerEvent.
2065 2066 2067 |
# File 'lib/google/apis/games_v1/classes.rb', line 2065 def initialize(**args) update!(**args) end |
Instance Attribute Details
#definition_id ⇒ String
The ID of the event definition.
Corresponds to the JSON property definitionId
2040 2041 2042 |
# File 'lib/google/apis/games_v1/classes.rb', line 2040 def definition_id @definition_id end |
#formatted_num_events ⇒ String
The current number of times this event has occurred, as a string. The
formatting of this string depends on the configuration of your event in the
Play Games Developer Console.
Corresponds to the JSON property formattedNumEvents
2047 2048 2049 |
# File 'lib/google/apis/games_v1/classes.rb', line 2047 def formatted_num_events @formatted_num_events end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#playerEvent.
Corresponds to the JSON property kind
2053 2054 2055 |
# File 'lib/google/apis/games_v1/classes.rb', line 2053 def kind @kind end |
#num_events ⇒ Fixnum
The current number of times this event has occurred.
Corresponds to the JSON property numEvents
2058 2059 2060 |
# File 'lib/google/apis/games_v1/classes.rb', line 2058 def num_events @num_events end |
#player_id ⇒ String
The ID of the player.
Corresponds to the JSON property playerId
2063 2064 2065 |
# File 'lib/google/apis/games_v1/classes.rb', line 2063 def player_id @player_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2070 2071 2072 2073 2074 2075 2076 |
# File 'lib/google/apis/games_v1/classes.rb', line 2070 def update!(**args) @definition_id = args[:definition_id] if args.key?(:definition_id) @formatted_num_events = args[:formatted_num_events] if args.key?(:formatted_num_events) @kind = args[:kind] if args.key?(:kind) @num_events = args[:num_events] if args.key?(:num_events) @player_id = args[:player_id] if args.key?(:player_id) end |