Class: Google::Apis::GamesV1::SnapshotImage

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

This is a JSON template for an image of a snapshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SnapshotImage

Returns a new instance of SnapshotImage.



4017
4018
4019
# File 'generated/google/apis/games_v1/classes.rb', line 4017

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

Instance Attribute Details

#heightFixnum

The height of the image. Corresponds to the JSON property height

Returns:

  • (Fixnum)


3993
3994
3995
# File 'generated/google/apis/games_v1/classes.rb', line 3993

def height
  @height
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#snapshotImage. Corresponds to the JSON property kind

Returns:

  • (String)


3999
4000
4001
# File 'generated/google/apis/games_v1/classes.rb', line 3999

def kind
  @kind
end

#mime_typeString

The MIME type of the image. Corresponds to the JSON property mime_type

Returns:

  • (String)


4004
4005
4006
# File 'generated/google/apis/games_v1/classes.rb', line 4004

def mime_type
  @mime_type
end

#urlString

The URL of the image. This URL may be invalidated at any time and should not be cached. Corresponds to the JSON property url

Returns:

  • (String)


4010
4011
4012
# File 'generated/google/apis/games_v1/classes.rb', line 4010

def url
  @url
end

#widthFixnum

The width of the image. Corresponds to the JSON property width

Returns:

  • (Fixnum)


4015
4016
4017
# File 'generated/google/apis/games_v1/classes.rb', line 4015

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4022
4023
4024
4025
4026
4027
4028
# File 'generated/google/apis/games_v1/classes.rb', line 4022

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @kind = args[:kind] if args.key?(:kind)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @url = args[:url] if args.key?(:url)
  @width = args[:width] if args.key?(:width)
end