Class: Google::Apis::FitnessV1::BucketByTime

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BucketByTime

Returns a new instance of BucketByTime



308
309
310
# File 'generated/google/apis/fitness_v1/classes.rb', line 308

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

Instance Attribute Details

#duration_millisFixnum

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

Returns:

  • (Fixnum)


301
302
303
# File 'generated/google/apis/fitness_v1/classes.rb', line 301

def duration_millis
  @duration_millis
end

#periodGoogle::Apis::FitnessV1::BucketByTimePeriod

Corresponds to the JSON property period



306
307
308
# File 'generated/google/apis/fitness_v1/classes.rb', line 306

def period
  @period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



313
314
315
316
# File 'generated/google/apis/fitness_v1/classes.rb', line 313

def update!(**args)
  @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
  @period = args[:period] if args.key?(:period)
end