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.
Constructor Details
#initialize(**args) ⇒ AggregateBy
Returns a new instance of AggregateBy.
100 101 102 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_id ⇒ String
A data source ID to aggregate. Only data from the specified data source ID
will be included in the aggregation. If specified, this data source must exist;
the OAuth scopes in the supplied credentials must grant read access to this
data type. The dataset in the response will have the same data source ID. Note:
Data can be aggregated by either the dataTypeName or the dataSourceId, not
both.
Corresponds to the JSON property dataSourceId
88 89 90 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 88 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.android.gms:aggregated. If the user has no data for this data type,
an empty data set will be returned. Note: Data can be aggregated by either the
dataTypeName or the dataSourceId, not both.
Corresponds to the JSON property dataTypeName
98 99 100 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 98 def data_type_name @data_type_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
105 106 107 108 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 105 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 |