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

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

Returns a new instance of EventPeriodUpdate.



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

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)


886
887
888
# File 'lib/google/apis/games_v1/classes.rb', line 886

def kind
  @kind
end

#time_periodGoogle::Apis::GamesV1::EventPeriodRange

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



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

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



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

def updates
  @updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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