Class: Google::Apis::GamesV1::SnapshotImage
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::SnapshotImage
- 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
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SnapshotImage
Returns a new instance of SnapshotImage.
3732 3733 3734 |
# File 'generated/google/apis/games_v1/classes.rb', line 3732 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the image.
Corresponds to the JSON property height
3708 3709 3710 |
# File 'generated/google/apis/games_v1/classes.rb', line 3708 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
3714 3715 3716 |
# File 'generated/google/apis/games_v1/classes.rb', line 3714 def kind @kind end |
#mime_type ⇒ String
The MIME type of the image.
Corresponds to the JSON property mime_type
3719 3720 3721 |
# File 'generated/google/apis/games_v1/classes.rb', line 3719 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
3725 3726 3727 |
# File 'generated/google/apis/games_v1/classes.rb', line 3725 def url @url end |
#width ⇒ Fixnum
The width of the image.
Corresponds to the JSON property width
3730 3731 3732 |
# File 'generated/google/apis/games_v1/classes.rb', line 3730 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3737 3738 3739 3740 3741 3742 3743 |
# File 'generated/google/apis/games_v1/classes.rb', line 3737 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 |