Class: Google::Apis::WalletobjectsV1::AppLinkDataAppLinkInfoAppTarget

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

Returns a new instance of AppLinkDataAppLinkInfoAppTarget.



232
233
234
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 232

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

Instance Attribute Details

#package_nameString

Package name for AppTarget. For example: com.google.android.gm Corresponds to the JSON property packageName

Returns:

  • (String)


224
225
226
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 224

def package_name
  @package_name
end

#target_uriGoogle::Apis::WalletobjectsV1::Uri

URI for AppTarget. The description on the URI must be set. Prefer setting package field instead, if this target is defined for your application. Corresponds to the JSON property targetUri



230
231
232
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 230

def target_uri
  @target_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



237
238
239
240
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 237

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