Class: Google::Apis::HealthV4::SwimLengthsData

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

Swim lengths data over the time interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SwimLengthsData

Returns a new instance of SwimLengthsData.



4124
4125
4126
# File 'lib/google/apis/health_v4/classes.rb', line 4124

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

Instance Attribute Details

#intervalGoogle::Apis::HealthV4::ObservationTimeInterval

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



4112
4113
4114
# File 'lib/google/apis/health_v4/classes.rb', line 4112

def interval
  @interval
end

#stroke_countFixnum

Required. Number of strokes in the lap. Corresponds to the JSON property strokeCount

Returns:

  • (Fixnum)


4117
4118
4119
# File 'lib/google/apis/health_v4/classes.rb', line 4117

def stroke_count
  @stroke_count
end

#swim_stroke_typeString

Required. Swim stroke type. Corresponds to the JSON property swimStrokeType

Returns:

  • (String)


4122
4123
4124
# File 'lib/google/apis/health_v4/classes.rb', line 4122

def swim_stroke_type
  @swim_stroke_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4129
4130
4131
4132
4133
# File 'lib/google/apis/health_v4/classes.rb', line 4129

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