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

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

An image of a snapshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotImage

Returns a new instance of SnapshotImage.



2879
2880
2881
# File 'lib/google/apis/games_v1/classes.rb', line 2879

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

Instance Attribute Details

#heightFixnum

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

Returns:

  • (Fixnum)


2855
2856
2857
# File 'lib/google/apis/games_v1/classes.rb', line 2855

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)


2861
2862
2863
# File 'lib/google/apis/games_v1/classes.rb', line 2861

def kind
  @kind
end

#mime_typeString

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

Returns:

  • (String)


2866
2867
2868
# File 'lib/google/apis/games_v1/classes.rb', line 2866

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)


2872
2873
2874
# File 'lib/google/apis/games_v1/classes.rb', line 2872

def url
  @url
end

#widthFixnum

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

Returns:

  • (Fixnum)


2877
2878
2879
# File 'lib/google/apis/games_v1/classes.rb', line 2877

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2884
2885
2886
2887
2888
2889
2890
# File 'lib/google/apis/games_v1/classes.rb', line 2884

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