Class: Google::Apis::GamesV1::EventRecordRequest
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::EventRecordRequest
- 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
-
#current_time_millis ⇒ Fixnum
The current time when this update was sent, in milliseconds, since 1970 UTC ( Unix Epoch).
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#request_id ⇒ Fixnum
The request ID used to identify this attempt to record events.
-
#time_periods ⇒ Array<Google::Apis::GamesV1::EventPeriodUpdate>
A list of the time period updates being made in this request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventRecordRequest
constructor
A new instance of EventRecordRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventRecordRequest
Returns a new instance of EventRecordRequest.
973 974 975 |
# File 'generated/google/apis/games_v1/classes.rb', line 973 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_time_millis ⇒ Fixnum
The current time when this update was sent, in milliseconds, since 1970 UTC (
Unix Epoch).
Corresponds to the JSON property currentTimeMillis
955 956 957 |
# File 'generated/google/apis/games_v1/classes.rb', line 955 def current_time_millis @current_time_millis end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#eventRecordRequest
.
Corresponds to the JSON property kind
961 962 963 |
# File 'generated/google/apis/games_v1/classes.rb', line 961 def kind @kind end |
#request_id ⇒ Fixnum
The request ID used to identify this attempt to record events.
Corresponds to the JSON property requestId
966 967 968 |
# File 'generated/google/apis/games_v1/classes.rb', line 966 def request_id @request_id end |
#time_periods ⇒ Array<Google::Apis::GamesV1::EventPeriodUpdate>
A list of the time period updates being made in this request.
Corresponds to the JSON property timePeriods
971 972 973 |
# File 'generated/google/apis/games_v1/classes.rb', line 971 def time_periods @time_periods end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
978 979 980 981 982 983 |
# File 'generated/google/apis/games_v1/classes.rb', line 978 def update!(**args) @current_time_millis = args[:current_time_millis] if args.key?(:current_time_millis) @kind = args[:kind] if args.key?(:kind) @request_id = args[:request_id] if args.key?(:request_id) @time_periods = args[:time_periods] if args.key?(:time_periods) end |