Class: Google::Apis::AndroidpublisherV3::SubscriptionOfferTargeting

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

Defines the rule a user needs to satisfy to receive this offer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubscriptionOfferTargeting

Returns a new instance of SubscriptionOfferTargeting.



5683
5684
5685
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5683

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

Instance Attribute Details

#acquisition_ruleGoogle::Apis::AndroidpublisherV3::AcquisitionTargetingRule

Represents a targeting rule of the form: User never had scope before. Corresponds to the JSON property acquisitionRule



5675
5676
5677
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5675

def acquisition_rule
  @acquisition_rule
end

#upgrade_ruleGoogle::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



5681
5682
5683
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5681

def upgrade_rule
  @upgrade_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5688
5689
5690
5691
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5688

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