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.
225 226 227 |
# File 'lib/google/apis/health_v4/classes.rb', line 225 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activity_level_type ⇒ String
Activity level type.
Corresponds to the JSON property activityLevelType
218 219 220 |
# File 'lib/google/apis/health_v4/classes.rb', line 218 def activity_level_type @activity_level_type end |
#total_duration ⇒ String
Total duration in the activity level type.
Corresponds to the JSON property totalDuration
223 224 225 |
# File 'lib/google/apis/health_v4/classes.rb', line 223 def total_duration @total_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
230 231 232 233 |
# File 'lib/google/apis/health_v4/classes.rb', line 230 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 |