Class: Google::Apis::GamesV1::SnapshotMetadata
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::SnapshotMetadata
- 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
Metadata about a snapshot revision. Snapshot metadata is immutable - a metadata change corresponds to a new snapshot revision.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of this snapshot.
-
#device_name ⇒ String
The device that created the current revision.
-
#gameplay_duration ⇒ String
The duration associated with this snapshot.
-
#last_modify_time ⇒ String
The timestamp of the last modification to this snapshot as provided by the client.
-
#progress_value ⇒ Fixnum
The progress value (64-bit integer set by developer) associated with this snapshot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SnapshotMetadata
constructor
A new instance of SnapshotMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SnapshotMetadata
Returns a new instance of SnapshotMetadata.
2803 2804 2805 |
# File 'lib/google/apis/games_v1/classes.rb', line 2803 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of this snapshot.
Corresponds to the JSON property description
2777 2778 2779 |
# File 'lib/google/apis/games_v1/classes.rb', line 2777 def description @description end |
#device_name ⇒ String
The device that created the current revision.
Corresponds to the JSON property deviceName
2782 2783 2784 |
# File 'lib/google/apis/games_v1/classes.rb', line 2782 def device_name @device_name end |
#gameplay_duration ⇒ String
The duration associated with this snapshot. Values with sub-millisecond
precision can be rounded or trimmed to the closest millisecond.
Corresponds to the JSON property gameplayDuration
2788 2789 2790 |
# File 'lib/google/apis/games_v1/classes.rb', line 2788 def gameplay_duration @gameplay_duration end |
#last_modify_time ⇒ String
The timestamp of the last modification to this snapshot as provided by the
client. Values with sub-millisecond precision can be rounded or trimmed to the
closest millisecond.
Corresponds to the JSON property lastModifyTime
2795 2796 2797 |
# File 'lib/google/apis/games_v1/classes.rb', line 2795 def last_modify_time @last_modify_time end |
#progress_value ⇒ Fixnum
The progress value (64-bit integer set by developer) associated with this
snapshot.
Corresponds to the JSON property progressValue
2801 2802 2803 |
# File 'lib/google/apis/games_v1/classes.rb', line 2801 def progress_value @progress_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2808 2809 2810 2811 2812 2813 2814 |
# File 'lib/google/apis/games_v1/classes.rb', line 2808 def update!(**args) @description = args[:description] if args.key?(:description) @device_name = args[:device_name] if args.key?(:device_name) @gameplay_duration = args[:gameplay_duration] if args.key?(:gameplay_duration) @last_modify_time = args[:last_modify_time] if args.key?(:last_modify_time) @progress_value = args[:progress_value] if args.key?(:progress_value) end |