Class: Google::Apis::WalletobjectsV1::Image

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

Overview

Wrapping type for Google hosted images. Next ID: 7

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



4122
4123
4124
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4122

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

Instance Attribute Details

#content_descriptionGoogle::Apis::WalletobjectsV1::LocalizedString

Description of the image used for accessibility. Corresponds to the JSON property contentDescription



4109
4110
4111
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4109

def content_description
  @content_description
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#image". Corresponds to the JSON property kind

Returns:

  • (String)


4115
4116
4117
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4115

def kind
  @kind
end

#source_uriGoogle::Apis::WalletobjectsV1::ImageUri

The URI for the image. Corresponds to the JSON property sourceUri



4120
4121
4122
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4120

def source_uri
  @source_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4127
4128
4129
4130
4131
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4127

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