Class: Google::Apis::AndroidpublisherV3::VanityCode
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::VanityCode
- 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
-
#promotion_code ⇒ String
The promotion code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VanityCode
constructor
A new instance of VanityCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
The promotion code.
Corresponds to the JSON property promotionCode
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 |