Class: Google::Apis::HealthV4::ActiveMinutesByActivityLevel

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 at a given activity level.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActiveMinutesByActivityLevel

Returns a new instance of ActiveMinutesByActivityLevel.



109
110
111
# File 'lib/google/apis/health_v4/classes.rb', line 109

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

Instance Attribute Details

#active_minutesFixnum

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

Returns:

  • (Fixnum)


102
103
104
# File 'lib/google/apis/health_v4/classes.rb', line 102

def active_minutes
  @active_minutes
end

#activity_levelString

Required. The level of activity. Corresponds to the JSON property activityLevel

Returns:

  • (String)


107
108
109
# File 'lib/google/apis/health_v4/classes.rb', line 107

def activity_level
  @activity_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
# File 'lib/google/apis/health_v4/classes.rb', line 114

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