Class: Google::Apis::AndroidpublisherV3::SubscriptionOfferTargeting
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::SubscriptionOfferTargeting
- 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
Defines the rule a user needs to satisfy to receive this offer.
Instance Attribute Summary collapse
-
#acquisition_rule ⇒ Google::Apis::AndroidpublisherV3::AcquisitionTargetingRule
Represents a targeting rule of the form: User never had
scopebefore. -
#upgrade_rule ⇒ Google::Apis::AndroidpublisherV3::UpgradeTargetingRule
Represents a targeting rule of the form: User currently has
scope[with billing periodbilling_period].
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubscriptionOfferTargeting
constructor
A new instance of SubscriptionOfferTargeting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubscriptionOfferTargeting
Returns a new instance of SubscriptionOfferTargeting.
5679 5680 5681 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5679 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acquisition_rule ⇒ Google::Apis::AndroidpublisherV3::AcquisitionTargetingRule
Represents a targeting rule of the form: User never had scope before.
Corresponds to the JSON property acquisitionRule
5671 5672 5673 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5671 def acquisition_rule @acquisition_rule end |
#upgrade_rule ⇒ Google::Apis::AndroidpublisherV3::UpgradeTargetingRule
Represents a targeting rule of the form: User currently has scope [with
billing period billing_period].
Corresponds to the JSON property upgradeRule
5677 5678 5679 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5677 def upgrade_rule @upgrade_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5684 5685 5686 5687 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5684 def update!(**args) @acquisition_rule = args[:acquisition_rule] if args.key?(:acquisition_rule) @upgrade_rule = args[:upgrade_rule] if args.key?(:upgrade_rule) end |