Class: Google::Apis::GamesV1::EventPeriodUpdate
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::EventPeriodUpdate
- 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
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#time_period ⇒ Google::Apis::GamesV1::EventPeriodRange
An event period time range.
-
#updates ⇒ Array<Google::Apis::GamesV1::UpdateEventRequest>
The updates being made for this time period.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventPeriodUpdate
constructor
A new instance of EventPeriodUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#eventPeriodUpdate
.
Corresponds to the JSON property kind
891 892 893 |
# File 'generated/google/apis/games_v1/classes.rb', line 891 def kind @kind end |
#time_period ⇒ Google::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 |
#updates ⇒ Array<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 |