Class: Google::Apis::AndroidpublisherV3::SubscriptionListing

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb

Overview

The consumer-visible metadata of a subscription.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubscriptionListing

Returns a new instance of SubscriptionListing.



3212
3213
3214
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3212

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

Instance Attribute Details

#benefitsArray<String>

A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits. Corresponds to the JSON property benefits

Returns:

  • (Array<String>)


3193
3194
3195
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3193

def benefits
  @benefits
end

#descriptionString

The description of this subscription in the language of this listing. Maximum length - 80 characters. Plain text. Corresponds to the JSON property description

Returns:

  • (String)


3199
3200
3201
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3199

def description
  @description
end

#language_codeString

Required. The language of this listing, as defined by BCP-47, e.g. "en-US". Corresponds to the JSON property languageCode

Returns:

  • (String)


3204
3205
3206
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3204

def language_code
  @language_code
end

#titleString

Required. The title of this subscription in the language of this listing. Plain text. Corresponds to the JSON property title

Returns:

  • (String)


3210
3211
3212
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3210

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3217
3218
3219
3220
3221
3222
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3217

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