Class: Google::Apis::GamesV1::SnapshotMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionString

The description of this snapshot. Corresponds to the JSON property description

Returns:

  • (String)


2767
2768
2769
# File 'lib/google/apis/games_v1/classes.rb', line 2767

def description
  @description
end

#device_nameString

The device that created the current revision. Corresponds to the JSON property deviceName

Returns:

  • (String)


2772
2773
2774
# File 'lib/google/apis/games_v1/classes.rb', line 2772

def device_name
  @device_name
end

#gameplay_durationString

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

Returns:

  • (String)


2778
2779
2780
# File 'lib/google/apis/games_v1/classes.rb', line 2778

def gameplay_duration
  @gameplay_duration
end

#last_modify_timeString

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

Returns:

  • (String)


2785
2786
2787
# File 'lib/google/apis/games_v1/classes.rb', line 2785

def last_modify_time
  @last_modify_time
end

#progress_valueFixnum

The progress value (64-bit integer set by developer) associated with this snapshot. Corresponds to the JSON property progressValue

Returns:

  • (Fixnum)


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