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.



235
236
237
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 235

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)


227
228
229
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 227

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



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

def target_uri
  @target_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



240
241
242
243
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 240

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