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.
2793 2794 2795 |
# File 'lib/google/apis/games_v1/classes.rb', line 2793 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of this snapshot.
Corresponds to the JSON property description
2767 2768 2769 |
# File 'lib/google/apis/games_v1/classes.rb', line 2767 def description @description end |
#device_name ⇒ String
The device that created the current revision.
Corresponds to the JSON property deviceName
2772 2773 2774 |
# File 'lib/google/apis/games_v1/classes.rb', line 2772 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
2778 2779 2780 |
# File 'lib/google/apis/games_v1/classes.rb', line 2778 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
2785 2786 2787 |
# File 'lib/google/apis/games_v1/classes.rb', line 2785 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
2791 2792 2793 |
# File 'lib/google/apis/games_v1/classes.rb', line 2791 def progress_value @progress_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2798 2799 2800 2801 2802 2803 2804 |
# File 'lib/google/apis/games_v1/classes.rb', line 2798 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 |