Class: Google::Apis::FitnessV1::AggregateBy
- Inherits:
-
Object
- Object
- Google::Apis::FitnessV1::AggregateBy
- 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
-
#data_source_id ⇒ String
A data source ID to aggregate.
-
#data_type_name ⇒ String
The data type to aggregate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregateBy
constructor
A new instance of AggregateBy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_id ⇒ String
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
85 86 87 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 85 def data_source_id @data_source_id end |
#data_type_name ⇒ String
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
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 |