class Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration
Describes the length of a period of a time.
Attributes
count[RW]
number of duration units to be included. Corresponds to the JSON property `count` @return [Fixnum]
unit[RW]
The unit used for the duration Corresponds to the JSON property `unit` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/paymentsresellersubscription_v1/classes.rb, line 86 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/paymentsresellersubscription_v1/classes.rb, line 91 def update!(**args) @count = args[:count] if args.key?(:count) @unit = args[:unit] if args.key?(:unit) end