class Google::Apis::FitnessV1::BucketByTime

Attributes

duration_millis[RW]

Specifies that result buckets aggregate data by exactly durationMillis time frames. Time frames that contain no data will be included in the response with an empty dataset. Corresponds to the JSON property `durationMillis` @return [Fixnum]

period[RW]

Corresponds to the JSON property `period` @return [Google::Apis::FitnessV1::BucketByTimePeriod]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/fitness_v1/classes.rb, line 313
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/fitness_v1/classes.rb, line 318
def update!(**args)
  @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
  @period = args[:period] if args.key?(:period)
end