Class: Google::Apis::FitnessV1::BucketByTime
- Inherits:
-
Object
- Object
- Google::Apis::FitnessV1::BucketByTime
- 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
-
#duration_millis ⇒ Fixnum
Specifies that result buckets aggregate data by exactly durationMillis time frames.
-
#period ⇒ Google::Apis::FitnessV1::BucketByTimePeriod
Corresponds to the JSON property
period
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BucketByTime
constructor
A new instance of BucketByTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BucketByTime
Returns a new instance of BucketByTime
310 311 312 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 310 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration_millis ⇒ Fixnum
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
303 304 305 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 303 def duration_millis @duration_millis end |
#period ⇒ Google::Apis::FitnessV1::BucketByTimePeriod
Corresponds to the JSON property period
308 309 310 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 308 def period @period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
315 316 317 318 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 315 def update!(**args) @duration_millis = args[:duration_millis] if args.key?(:duration_millis) @period = args[:period] if args.key?(:period) end |