Class: Google::Apis::AndroidpublisherV3::Season

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidpublisher_v3/classes.rb,
generated/google/apis/androidpublisher_v3/representations.rb,
generated/google/apis/androidpublisher_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Season

Returns a new instance of Season



1422
1423
1424
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1422

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

Instance Attribute Details

#endGoogle::Apis::AndroidpublisherV3::MonthDay

Inclusive end date of the recurrence period. Corresponds to the JSON property end



1408
1409
1410
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1408

def end
  @end
end

#prorationsArray<Google::Apis::AndroidpublisherV3::Prorate>

Optionally present list of prorations for the season. Each proration is a one- off discounted entry into a subscription. Each proration contains the first date on which the discount is available and the new pricing information. Corresponds to the JSON property prorations



1415
1416
1417
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1415

def prorations
  @prorations
end

#startGoogle::Apis::AndroidpublisherV3::MonthDay

Inclusive start date of the recurrence period. Corresponds to the JSON property start



1420
1421
1422
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1420

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1427
1428
1429
1430
1431
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1427

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