Class: Google::Apis::FitnessV1::BucketByActivity
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FitnessV1::BucketByActivity
 
- 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
Instance Attribute Summary collapse
- 
  
    
      #activity_data_source_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The default activity stream will be used if a specific activityDataSourceId is not specified. 
- 
  
    
      #min_duration_millis  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specifies that only activity segments of duration longer than minDurationMillis are considered and used as a container for aggregated data. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BucketByActivity 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of BucketByActivity. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BucketByActivity
Returns a new instance of BucketByActivity
| 263 264 265 | # File 'generated/google/apis/fitness_v1/classes.rb', line 263 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#activity_data_source_id ⇒ String
The default activity stream will be used if a specific activityDataSourceId is
not specified.
Corresponds to the JSON property activityDataSourceId
| 255 256 257 | # File 'generated/google/apis/fitness_v1/classes.rb', line 255 def activity_data_source_id @activity_data_source_id end | 
#min_duration_millis ⇒ Fixnum
Specifies that only activity segments of duration longer than
minDurationMillis are considered and used as a container for aggregated data.
Corresponds to the JSON property minDurationMillis
| 261 262 263 | # File 'generated/google/apis/fitness_v1/classes.rb', line 261 def min_duration_millis @min_duration_millis end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 268 269 270 271 | # File 'generated/google/apis/fitness_v1/classes.rb', line 268 def update!(**args) @activity_data_source_id = args[:activity_data_source_id] if args.key?(:activity_data_source_id) @min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis) end |