Class: Google::Apis::WalletobjectsV1::ImageModuleData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageModuleData

Returns a new instance of ImageModuleData.



4456
4457
4458
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4456

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


4449
4450
4451
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4449

def id
  @id
end

#main_imageGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Corresponds to the JSON property mainImage



4454
4455
4456
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4454

def main_image
  @main_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4461
4462
4463
4464
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4461

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @main_image = args[:main_image] if args.key?(:main_image)
end