Class: Google::Apis::GamesV1::EventPeriodRange
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::EventPeriodRange
- 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 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.
841 842 843 |
# File 'lib/google/apis/games_v1/classes.rb', line 841 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
828 829 830 |
# File 'lib/google/apis/games_v1/classes.rb', line 828 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
833 834 835 |
# File 'lib/google/apis/games_v1/classes.rb', line 833 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
839 840 841 |
# File 'lib/google/apis/games_v1/classes.rb', line 839 def period_start_millis @period_start_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
846 847 848 849 850 |
# File 'lib/google/apis/games_v1/classes.rb', line 846 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 |