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.



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

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)


221
222
223
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 221

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



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

def target_uri
  @target_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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