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
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.
Constructor Details
#initialize(**args) ⇒ EventPeriodRange
Returns a new instance of EventPeriodRange.
871 872 873 |
# File 'generated/google/apis/games_v1/classes.rb', line 871 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
858 859 860 |
# File 'generated/google/apis/games_v1/classes.rb', line 858 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
863 864 865 |
# File 'generated/google/apis/games_v1/classes.rb', line 863 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
869 870 871 |
# File 'generated/google/apis/games_v1/classes.rb', line 869 def period_start_millis @period_start_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
876 877 878 879 880 |
# File 'generated/google/apis/games_v1/classes.rb', line 876 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 |