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.



2803
2804
2805
# File 'lib/google/apis/games_v1/classes.rb', line 2803

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


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

def description
  @description
end

#device_nameString

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

Returns:

  • (String)


2782
2783
2784
# File 'lib/google/apis/games_v1/classes.rb', line 2782

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)


2788
2789
2790
# File 'lib/google/apis/games_v1/classes.rb', line 2788

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)


2795
2796
2797
# File 'lib/google/apis/games_v1/classes.rb', line 2795

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)


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