Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb
Overview
Relative date range configuration.
Instance Attribute Summary collapse
-
#quantity ⇒ Fixnum
Required.
-
#unit ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange
constructor
A new instance of GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange
Returns a new instance of GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange.
3630 3631 3632 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3630 def initialize(**args) update!(**args) end |
Instance Attribute Details
#quantity ⇒ Fixnum
Required. The quantity of units in the past.
Corresponds to the JSON property quantity
3623 3624 3625 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3623 def quantity @quantity end |
#unit ⇒ String
Required. The unit of time.
Corresponds to the JSON property unit
3628 3629 3630 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3628 def unit @unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3635 3636 3637 3638 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3635 def update!(**args) @quantity = args[:quantity] if args.key?(:quantity) @unit = args[:unit] if args.key?(:unit) end |