Class: Google::Apis::GamesV1::EventPeriodUpdate
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::EventPeriodUpdate
- 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
-
#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.
873 874 875 |
# File 'lib/google/apis/games_v1/classes.rb', line 873 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
861 862 863 |
# File 'lib/google/apis/games_v1/classes.rb', line 861 def kind @kind end |
#time_period ⇒ Google::Apis::GamesV1::EventPeriodRange
An event period time range.
Corresponds to the JSON property timePeriod
866 867 868 |
# File 'lib/google/apis/games_v1/classes.rb', line 866 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
871 872 873 |
# File 'lib/google/apis/games_v1/classes.rb', line 871 def updates @updates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
878 879 880 881 882 |
# File 'lib/google/apis/games_v1/classes.rb', line 878 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 |