Class: Google::Apis::HealthV4::Height

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

Body height measurement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Height

Returns a new instance of Height.



2860
2861
2862
# File 'lib/google/apis/health_v4/classes.rb', line 2860

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

Instance Attribute Details

#height_millimetersFixnum

Required. Height of the user in millimeters. Corresponds to the JSON property heightMillimeters

Returns:

  • (Fixnum)


2853
2854
2855
# File 'lib/google/apis/health_v4/classes.rb', line 2853

def height_millimeters
  @height_millimeters
end

#sample_timeGoogle::Apis::HealthV4::ObservationSampleTime

Represents a sample time of an observed data point. Corresponds to the JSON property sampleTime



2858
2859
2860
# File 'lib/google/apis/health_v4/classes.rb', line 2858

def sample_time
  @sample_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2865
2866
2867
2868
# File 'lib/google/apis/health_v4/classes.rb', line 2865

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