Class: Google::Apis::GamesV1::EventRecordFailure

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 update failure resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventRecordFailure

Returns a new instance of EventRecordFailure.



905
906
907
# File 'lib/google/apis/games_v1/classes.rb', line 905

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

Instance Attribute Details

#event_idString

The ID of the event that was not updated. Corresponds to the JSON property eventId

Returns:

  • (String)


892
893
894
# File 'lib/google/apis/games_v1/classes.rb', line 892

def event_id
  @event_id
end

#failure_causeString

The cause for the update failure. Corresponds to the JSON property failureCause

Returns:

  • (String)


897
898
899
# File 'lib/google/apis/games_v1/classes.rb', line 897

def failure_cause
  @failure_cause
end

#kindString

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

Returns:

  • (String)


903
904
905
# File 'lib/google/apis/games_v1/classes.rb', line 903

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



910
911
912
913
914
# File 'lib/google/apis/games_v1/classes.rb', line 910

def update!(**args)
  @event_id = args[:event_id] if args.key?(:event_id)
  @failure_cause = args[:failure_cause] if args.key?(:failure_cause)
  @kind = args[:kind] if args.key?(:kind)
end