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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/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.



11073
11074
11075
# File 'lib/google/apis/content_v2_1/classes.rb', line 11073

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



11061
11062
11063
# File 'lib/google/apis/content_v2_1/classes.rb', line 11061

def amount
  @amount
end

#periodString

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

Returns:

  • (String)


11066
11067
11068
# File 'lib/google/apis/content_v2_1/classes.rb', line 11066

def period
  @period
end

#period_lengthFixnum

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

Returns:

  • (Fixnum)


11071
11072
11073
# File 'lib/google/apis/content_v2_1/classes.rb', line 11071

def period_length
  @period_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11078
11079
11080
11081
11082
# File 'lib/google/apis/content_v2_1/classes.rb', line 11078

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