Class: Google::Apis::GamesV1::EventPeriodRange
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::EventPeriodRange
- 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 time range.
Instance Attribute Summary collapse
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#period_end_millis ⇒ Fixnum
The time when this update period ends, in millis, since 1970 UTC (Unix Epoch).
-
#period_start_millis ⇒ Fixnum
The time when this update period begins, in millis, since 1970 UTC (Unix Epoch) .
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventPeriodRange
constructor
A new instance of EventPeriodRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EventPeriodRange
Returns a new instance of EventPeriodRange
936 937 938 |
# File 'generated/google/apis/games_v1/classes.rb', line 936 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#eventPeriodRange.
Corresponds to the JSON property kind
923 924 925 |
# File 'generated/google/apis/games_v1/classes.rb', line 923 def kind @kind end |
#period_end_millis ⇒ Fixnum
The time when this update period ends, in millis, since 1970 UTC (Unix Epoch).
Corresponds to the JSON property periodEndMillis
928 929 930 |
# File 'generated/google/apis/games_v1/classes.rb', line 928 def period_end_millis @period_end_millis end |
#period_start_millis ⇒ Fixnum
The time when this update period begins, in millis, since 1970 UTC (Unix Epoch)
.
Corresponds to the JSON property periodStartMillis
934 935 936 |
# File 'generated/google/apis/games_v1/classes.rb', line 934 def period_start_millis @period_start_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
941 942 943 944 945 |
# File 'generated/google/apis/games_v1/classes.rb', line 941 def update!(**args) @kind = args[:kind] if args.key?(:kind) @period_end_millis = args[:period_end_millis] if args.key?(:period_end_millis) @period_start_millis = args[:period_start_millis] if args.key?(:period_start_millis) end |