Class: Google::Apis::HealthV4::DistanceRollupValue

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

Result of the rollup of the user's distance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DistanceRollupValue

Returns a new instance of DistanceRollupValue.



1986
1987
1988
# File 'lib/google/apis/health_v4/classes.rb', line 1986

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

Instance Attribute Details

#millimeters_sumFixnum

Sum of the distance in millimeters. Corresponds to the JSON property millimetersSum

Returns:

  • (Fixnum)


1984
1985
1986
# File 'lib/google/apis/health_v4/classes.rb', line 1984

def millimeters_sum
  @millimeters_sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1991
1992
1993
# File 'lib/google/apis/health_v4/classes.rb', line 1991

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