Class: Google::Apis::HealthV4::Steps

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

Step count over the time interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Steps

Returns a new instance of Steps.



3967
3968
3969
# File 'lib/google/apis/health_v4/classes.rb', line 3967

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

Instance Attribute Details

#countFixnum

Required. Number of steps in the recorded interval. Corresponds to the JSON property count

Returns:

  • (Fixnum)


3960
3961
3962
# File 'lib/google/apis/health_v4/classes.rb', line 3960

def count
  @count
end

#intervalGoogle::Apis::HealthV4::ObservationTimeInterval

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



3965
3966
3967
# File 'lib/google/apis/health_v4/classes.rb', line 3965

def interval
  @interval
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3972
3973
3974
3975
# File 'lib/google/apis/health_v4/classes.rb', line 3972

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