Class: Google::Apis::WalletobjectsV1::PrivateUri

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

Private data for LinkModule. This data will be rendered as the LinkModule for a pass.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrivateUri

Returns a new instance of PrivateUri.



6473
6474
6475
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6473

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

Instance Attribute Details

#descriptionGoogle::Apis::WalletobjectsV1::LocalizedString

The URI's title appearing in the app as text and its translated strings. Recommended maximum is 20 characters to ensure the full string is displayed on smaller screens. Corresponds to the JSON property description



6464
6465
6466
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6464

def description
  @description
end

#uriString

The location of a web page, image, or other resource. URIs in the LinksModuleData 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). Corresponds to the JSON property uri

Returns:

  • (String)


6471
6472
6473
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6471

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6478
6479
6480
6481
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6478

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