Class: Google::Apis::HealthV4::ActivityLevelRollupByActivityLevelType
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::ActivityLevelRollupByActivityLevelType
- 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
-
#activity_level_type ⇒ String
Activity level type.
-
#total_duration ⇒ String
Total duration in the activity level type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivityLevelRollupByActivityLevelType
constructor
A new instance of ActivityLevelRollupByActivityLevelType.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_type ⇒ String
Activity level type.
Corresponds to the JSON property activityLevelType
262 263 264 |
# File 'lib/google/apis/health_v4/classes.rb', line 262 def activity_level_type @activity_level_type end |
#total_duration ⇒ String
Total duration in the activity level type.
Corresponds to the JSON property totalDuration
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 |