Class: Google::Apis::ContentV2_1::ProductSubscriptionCost

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductSubscriptionCost

Returns a new instance of ProductSubscriptionCost.



9988
9989
9990
# File 'generated/google/apis/content_v2_1/classes.rb', line 9988

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2_1::Price

The amount the buyer has to pay per subscription period. Corresponds to the JSON property amount



9976
9977
9978
# File 'generated/google/apis/content_v2_1/classes.rb', line 9976

def amount
  @amount
end

#periodString

The type of subscription period. Corresponds to the JSON property period

Returns:

  • (String)


9981
9982
9983
# File 'generated/google/apis/content_v2_1/classes.rb', line 9981

def period
  @period
end

#period_lengthFixnum

The number of subscription periods the buyer has to pay. Corresponds to the JSON property periodLength

Returns:

  • (Fixnum)


9986
9987
9988
# File 'generated/google/apis/content_v2_1/classes.rb', line 9986

def period_length
  @period_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9993
9994
9995
9996
9997
# File 'generated/google/apis/content_v2_1/classes.rb', line 9993

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @period = args[:period] if args.key?(:period)
  @period_length = args[:period_length] if args.key?(:period_length)
end