Class: Google::Apis::WalletobjectsV1::AppLinkData

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

Returns a new instance of AppLinkData.



169
170
171
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 169

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

Instance Attribute Details

Optional information about the partner app link. Corresponds to the JSON property androidAppLinkInfo



152
153
154
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 152

def android_app_link_info
  @android_app_link_info
end

#display_textGoogle::Apis::WalletobjectsV1::LocalizedString

Optional display text for the app link button. Character limit is 30. Corresponds to the JSON property displayText



157
158
159
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 157

def display_text
  @display_text
end

Deprecated. Links to open iOS apps are not supported. Corresponds to the JSON property iosAppLinkInfo



162
163
164
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 162

def ios_app_link_info
  @ios_app_link_info
end

Optional information about the partner web link. Corresponds to the JSON property webAppLinkInfo



167
168
169
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 167

def web_app_link_info
  @web_app_link_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



174
175
176
177
178
179
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 174

def update!(**args)
  @android_app_link_info = args[:android_app_link_info] if args.key?(:android_app_link_info)
  @display_text = args[:display_text] if args.key?(:display_text)
  @ios_app_link_info = args[:ios_app_link_info] if args.key?(:ios_app_link_info)
  @web_app_link_info = args[:web_app_link_info] if args.key?(:web_app_link_info)
end