Class: Google::Apis::FitnessV1::BucketByActivity

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BucketByActivity

Returns a new instance of BucketByActivity.



268
269
270
# File 'lib/google/apis/fitness_v1/classes.rb', line 268

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

Instance Attribute Details

#activity_data_source_idString

The default activity stream will be used if a specific activityDataSourceId is not specified. Corresponds to the JSON property activityDataSourceId

Returns:

  • (String)


260
261
262
# File 'lib/google/apis/fitness_v1/classes.rb', line 260

def activity_data_source_id
  @activity_data_source_id
end

#min_duration_millisFixnum

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

Returns:

  • (Fixnum)


266
267
268
# File 'lib/google/apis/fitness_v1/classes.rb', line 266

def min_duration_millis
  @min_duration_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



273
274
275
276
# File 'lib/google/apis/fitness_v1/classes.rb', line 273

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