Class: Google::Apis::WalletobjectsV1::ImageModuleData
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::ImageModuleData
- 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
Instance Attribute Summary collapse
-
#id ⇒ String
The ID associated with an image module.
-
#main_image ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageModuleData
constructor
A new instance of ImageModuleData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageModuleData
Returns a new instance of ImageModuleData.
4369 4370 4371 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4369 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The ID associated with an image module. This field is here to enable ease of
management of image modules.
Corresponds to the JSON property id
4362 4363 4364 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4362 def id @id end |
#main_image ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images. Next ID: 7
Corresponds to the JSON property mainImage
4367 4368 4369 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4367 def main_image @main_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4374 4375 4376 4377 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4374 def update!(**args) @id = args[:id] if args.key?(:id) @main_image = args[:main_image] if args.key?(:main_image) end |