Class: Google::Apis::FitnessV1::AggregateBy

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

Overview

The specification of which data to aggregate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AggregateBy

Returns a new instance of AggregateBy.



95
96
97
# File 'generated/google/apis/fitness_v1/classes.rb', line 95

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

Instance Attribute Details

#data_source_idString

A data source ID to aggregate. Mutually exclusive of dataTypeName. Only data from the specified data source ID will be included in the aggregation. The dataset in the response will have the same data source ID. Corresponds to the JSON property dataSourceId

Returns:

  • (String)


85
86
87
# File 'generated/google/apis/fitness_v1/classes.rb', line 85

def data_source_id
  @data_source_id
end

#data_type_nameString

The data type to aggregate. All data sources providing this data type will contribute data to the aggregation. The response will contain a single dataset for this data type name. The dataset will have a data source ID of derived:com. google.:com.google.android.gms:aggregated Corresponds to the JSON property dataTypeName

Returns:

  • (String)


93
94
95
# File 'generated/google/apis/fitness_v1/classes.rb', line 93

def data_type_name
  @data_type_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



100
101
102
103
# File 'generated/google/apis/fitness_v1/classes.rb', line 100

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