Class: Google::Apis::GamesV1::SnapshotImage
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::SnapshotImage
- 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
-
#height ⇒ Fixnum
The height of the image.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#mime_type ⇒ String
The MIME type of the image.
-
#url ⇒ String
The URL of the image.
-
#width ⇒ Fixnum
The width of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SnapshotImage
constructor
A new instance of SnapshotImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SnapshotImage
Returns a new instance of SnapshotImage.
2822 2823 2824 |
# File 'lib/google/apis/games_v1/classes.rb', line 2822 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the image.
Corresponds to the JSON property height
2798 2799 2800 |
# File 'lib/google/apis/games_v1/classes.rb', line 2798 def height @height end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#snapshotImage.
Corresponds to the JSON property kind
2804 2805 2806 |
# File 'lib/google/apis/games_v1/classes.rb', line 2804 def kind @kind end |
#mime_type ⇒ String
The MIME type of the image.
Corresponds to the JSON property mime_type
2809 2810 2811 |
# File 'lib/google/apis/games_v1/classes.rb', line 2809 def mime_type @mime_type end |
#url ⇒ String
The URL of the image. This URL may be invalidated at any time and should not
be cached.
Corresponds to the JSON property url
2815 2816 2817 |
# File 'lib/google/apis/games_v1/classes.rb', line 2815 def url @url end |
#width ⇒ Fixnum
The width of the image.
Corresponds to the JSON property width
2820 2821 2822 |
# File 'lib/google/apis/games_v1/classes.rb', line 2820 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2827 2828 2829 2830 2831 2832 2833 |
# File 'lib/google/apis/games_v1/classes.rb', line 2827 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 |