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.
10510 10511 10512 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 10510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#promotion_code ⇒ String
The promotion code.
Corresponds to the JSON property promotionCode
10508 10509 10510 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 10508 def promotion_code @promotion_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10515 10516 10517 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 10515 def update!(**args) @promotion_code = args[:promotion_code] if args.key?(:promotion_code) end |