Class: Google::Apis::BusinessprofileperformanceV1::TimeSeries

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/businessprofileperformance_v1/classes.rb,
lib/google/apis/businessprofileperformance_v1/representations.rb,
lib/google/apis/businessprofileperformance_v1/representations.rb

Overview

Represents a timeseries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeSeries

Returns a new instance of TimeSeries.



349
350
351
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 349

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

Instance Attribute Details

#dated_valuesArray<Google::Apis::BusinessprofileperformanceV1::DatedValue>

List of datapoints in the timeseries, where each datapoint is a date-value pair. Corresponds to the JSON property datedValues



347
348
349
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 347

def dated_values
  @dated_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



354
355
356
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 354

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