Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange

Returns a new instance of GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange.



4187
4188
4189
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4187

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

Instance Attribute Details

#quantityFixnum

Required. The quantity of units in the past. Corresponds to the JSON property quantity

Returns:

  • (Fixnum)


4180
4181
4182
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4180

def quantity
  @quantity
end

#unitString

Required. The unit of time. Corresponds to the JSON property unit

Returns:

  • (String)


4185
4186
4187
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4185

def unit
  @unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4192
4193
4194
4195
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4192

def update!(**args)
  @quantity = args[:quantity] if args.key?(:quantity)
  @unit = args[:unit] if args.key?(:unit)
end