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.



11147
11148
11149
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 11147

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

Instance Attribute Details

#promotion_codeString

The promotion code. Corresponds to the JSON property promotionCode

Returns:

  • (String)


11145
11146
11147
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 11145

def promotion_code
  @promotion_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11152
11153
11154
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 11152

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