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.



225
226
227
# File 'lib/google/apis/health_v4/classes.rb', line 225

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

Instance Attribute Details

#activity_level_typeString

Activity level type. Corresponds to the JSON property activityLevelType

Returns:

  • (String)


218
219
220
# File 'lib/google/apis/health_v4/classes.rb', line 218

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)


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