Class: Google::Apis::AndroidpublisherV3::VanityCode

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

A multiple use, predefined promotion code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VanityCode

Returns a new instance of VanityCode.



7390
7391
7392
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7390

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

Instance Attribute Details

#promotion_codeString

The promotion code. Corresponds to the JSON property promotionCode

Returns:

  • (String)


7388
7389
7390
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7388

def promotion_code
  @promotion_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7395
7396
7397
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7395

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