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.



65
66
67
# File 'lib/google/apis/health_v4/classes.rb', line 65

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)


58
59
60
# File 'lib/google/apis/health_v4/classes.rb', line 58

def active_minutes
  @active_minutes
end

#activity_levelString

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

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/health_v4/classes.rb', line 63

def activity_level
  @activity_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



70
71
72
73
# File 'lib/google/apis/health_v4/classes.rb', line 70

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