Class: Google::Apis::HealthV4::ActiveMinutesRollupByActivityLevel

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

Active minutes by activity level.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActiveMinutesRollupByActivityLevel

Returns a new instance of ActiveMinutesRollupByActivityLevel.



90
91
92
# File 'lib/google/apis/health_v4/classes.rb', line 90

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

Instance Attribute Details

#active_minutes_sumFixnum

Number of whole minutes spent in activity. Corresponds to the JSON property activeMinutesSum

Returns:

  • (Fixnum)


83
84
85
# File 'lib/google/apis/health_v4/classes.rb', line 83

def active_minutes_sum
  @active_minutes_sum
end

#activity_levelString

The level of activity. Corresponds to the JSON property activityLevel

Returns:

  • (String)


88
89
90
# File 'lib/google/apis/health_v4/classes.rb', line 88

def activity_level
  @activity_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



95
96
97
98
# File 'lib/google/apis/health_v4/classes.rb', line 95

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