Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::Period.
Represents period in days/months/years.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#duration
def duration() -> ::Integer
Returns
- (::Integer) — Total duration of Period Type defined.
#duration=
def duration=(value) -> ::Integer
Parameter
- value (::Integer) — Total duration of Period Type defined.
Returns
- (::Integer) — Total duration of Period Type defined.
#period_type
def period_type() -> ::Google::Cloud::Channel::V1::PeriodType
Returns
- (::Google::Cloud::Channel::V1::PeriodType) — Period Type.
#period_type=
def period_type=(value) -> ::Google::Cloud::Channel::V1::PeriodType
Parameter
- value (::Google::Cloud::Channel::V1::PeriodType) — Period Type.
Returns
- (::Google::Cloud::Channel::V1::PeriodType) — Period Type.