Class: Google::Apis::WalletobjectsV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::Image
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Overview
Wrapping type for Google hosted images. Next ID: 7
Instance Attribute Summary collapse
-
#content_description ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Description of the image used for accessibility.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#source_uri ⇒ Google::Apis::WalletobjectsV1::ImageUri
The URI for the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
4032 4033 4034 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4032 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_description ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Description of the image used for accessibility.
Corresponds to the JSON property contentDescription
4019 4020 4021 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4019 def content_description @content_description end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#image".
Corresponds to the JSON property kind
4025 4026 4027 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4025 def kind @kind end |
#source_uri ⇒ Google::Apis::WalletobjectsV1::ImageUri
The URI for the image.
Corresponds to the JSON property sourceUri
4030 4031 4032 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4030 def source_uri @source_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4037 4038 4039 4040 4041 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4037 def update!(**args) @content_description = args[:content_description] if args.key?(:content_description) @kind = args[:kind] if args.key?(:kind) @source_uri = args[:source_uri] if args.key?(:source_uri) end |