Class: Google::Apis::HealthV4::ActivityLevelRollupByActivityLevelType

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

Overview

Represents the total duration in a specific activity level type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActivityLevelRollupByActivityLevelType

Returns a new instance of ActivityLevelRollupByActivityLevelType.



269
270
271
# File 'lib/google/apis/health_v4/classes.rb', line 269

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

Instance Attribute Details

#activity_level_typeString

Activity level type. Corresponds to the JSON property activityLevelType

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/health_v4/classes.rb', line 262

def activity_level_type
  @activity_level_type
end

#total_durationString

Total duration in the activity level type. Corresponds to the JSON property totalDuration

Returns:

  • (String)


267
268
269
# File 'lib/google/apis/health_v4/classes.rb', line 267

def total_duration
  @total_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



274
275
276
277
# File 'lib/google/apis/health_v4/classes.rb', line 274

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