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

An event period update resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventPeriodUpdate

Returns a new instance of EventPeriodUpdate.



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

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)


891
892
893
# File 'generated/google/apis/games_v1/classes.rb', line 891

def kind
  @kind
end

#time_periodGoogle::Apis::GamesV1::EventPeriodRange

An event period time range. Corresponds to the JSON property timePeriod



896
897
898
# File 'generated/google/apis/games_v1/classes.rb', line 896

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



901
902
903
# File 'generated/google/apis/games_v1/classes.rb', line 901

def updates
  @updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



908
909
910
911
912
# File 'generated/google/apis/games_v1/classes.rb', line 908

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