Class: Google::Apis::GamesV1::UpdateEventResponse

Inherits:
Object
  • Object
show all
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 period update resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateEventResponse

Returns a new instance of UpdateEventResponse.



1038
1039
1040
# File 'lib/google/apis/games_v1/classes.rb', line 1038

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#batch_failuresArray<Google::Apis::GamesV1::EventBatchRecordFailure>

Any batch-wide failures which occurred applying updates. Corresponds to the JSON property batchFailures



1020
1021
1022
# File 'lib/google/apis/games_v1/classes.rb', line 1020

def batch_failures
  @batch_failures
end

#event_failuresArray<Google::Apis::GamesV1::EventRecordFailure>

Any failures updating a particular event. Corresponds to the JSON property eventFailures



1025
1026
1027
# File 'lib/google/apis/games_v1/classes.rb', line 1025

def event_failures
  @event_failures
end

#kindString

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

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/games_v1/classes.rb', line 1031

def kind
  @kind
end

#player_eventsArray<Google::Apis::GamesV1::PlayerEvent>

The current status of any updated events Corresponds to the JSON property playerEvents



1036
1037
1038
# File 'lib/google/apis/games_v1/classes.rb', line 1036

def player_events
  @player_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1043
1044
1045
1046
1047
1048
# File 'lib/google/apis/games_v1/classes.rb', line 1043

def update!(**args)
  @batch_failures = args[:batch_failures] if args.key?(:batch_failures)
  @event_failures = args[:event_failures] if args.key?(:event_failures)
  @kind = args[:kind] if args.key?(:kind)
  @player_events = args[:player_events] if args.key?(:player_events)
end