Class: Google::Apis::WalletobjectsV1::ImageUri

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) ⇒ ImageUri

Returns a new instance of ImageUri.



4181
4182
4183
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4181

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

Instance Attribute Details

#descriptionString

Additional information about the image, which is unused and retained only for backward compatibility. Corresponds to the JSON property description

Returns:

  • (String)


4168
4169
4170
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4168

def description
  @description
end

#localized_descriptionGoogle::Apis::WalletobjectsV1::LocalizedString

Translated strings for the description, which are unused and retained only for backward compatibility. Corresponds to the JSON property localizedDescription



4174
4175
4176
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4174

def localized_description
  @localized_description
end

#uriString

The location of the image. URIs must have a scheme. Corresponds to the JSON property uri

Returns:

  • (String)


4179
4180
4181
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4179

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4186
4187
4188
4189
4190
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4186

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @localized_description = args[:localized_description] if args.key?(:localized_description)
  @uri = args[:uri] if args.key?(:uri)
end