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.



1612
1613
1614
# File 'lib/google/apis/health_v4/classes.rb', line 1612

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)


1610
1611
1612
# File 'lib/google/apis/health_v4/classes.rb', line 1610

def millimeters_sum
  @millimeters_sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1617
1618
1619
# File 'lib/google/apis/health_v4/classes.rb', line 1617

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