Class: Google::Apis::GamesV1::EventPeriodUpdate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EventPeriodUpdate

Returns a new instance of EventPeriodUpdate.



968
969
970
# File 'generated/google/apis/games_v1/classes.rb', line 968

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


956
957
958
# File 'generated/google/apis/games_v1/classes.rb', line 956

def kind
  @kind
end

#time_periodGoogle::Apis::GamesV1::EventPeriodRange

This is a JSON template for an event period time range. Corresponds to the JSON property timePeriod



961
962
963
# File 'generated/google/apis/games_v1/classes.rb', line 961

def time_period
  @time_period
end

#updatesArray<Google::Apis::GamesV1::UpdateEventRequest>

The updates being made for this time period. Corresponds to the JSON property updates



966
967
968
# File 'generated/google/apis/games_v1/classes.rb', line 966

def updates
  @updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



973
974
975
976
977
# File 'generated/google/apis/games_v1/classes.rb', line 973

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