Class: Google::Apis::GamesV1::UpdateEventRequest

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) ⇒ UpdateEventRequest

Returns a new instance of UpdateEventRequest.



1001
1002
1003
# File 'lib/google/apis/games_v1/classes.rb', line 1001

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

Instance Attribute Details

#definition_idString

The ID of the event being modified in this update. Corresponds to the JSON property definitionId

Returns:

  • (String)


988
989
990
# File 'lib/google/apis/games_v1/classes.rb', line 988

def definition_id
  @definition_id
end

#kindString

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

Returns:

  • (String)


994
995
996
# File 'lib/google/apis/games_v1/classes.rb', line 994

def kind
  @kind
end

#update_countFixnum

The number of times this event occurred in this time period. Corresponds to the JSON property updateCount

Returns:

  • (Fixnum)


999
1000
1001
# File 'lib/google/apis/games_v1/classes.rb', line 999

def update_count
  @update_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1006
1007
1008
1009
1010
# File 'lib/google/apis/games_v1/classes.rb', line 1006

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