Class: Google::Apis::WalletobjectsV1::Uri

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

Returns a new instance of Uri.



8512
8513
8514
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8512

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

Instance Attribute Details

#descriptionString

The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when description is part of an image. Corresponds to the JSON property description

Returns:

  • (String)


8484
8485
8486
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8484

def description
  @description
end

#idString

The ID associated with a uri. This field is here to enable ease of management of uris. Corresponds to the JSON property id

Returns:

  • (String)


8490
8491
8492
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8490

def id
  @id
end

#kindString

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

Returns:

  • (String)


8496
8497
8498
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8496

def kind
  @kind
end

#localized_descriptionGoogle::Apis::WalletobjectsV1::LocalizedString

Translated strings for the description. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Corresponds to the JSON property localizedDescription



8502
8503
8504
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8502

def localized_description
  @localized_description
end

#uriString

The location of a web page, image, or other resource. URIs in the LinksModuleData module can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address). URIs must have a scheme. Corresponds to the JSON property uri

Returns:

  • (String)


8510
8511
8512
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8510

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8517
8518
8519
8520
8521
8522
8523
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8517

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