class Google::Apis::FitnessV1::Value

Holder object for the value of a single field in a data point. A field value has a particular format and is only ever set to one of an integer or a floating point value.

Attributes

fp_val[RW]

Floating point value. When this is set, other values must not be set. Corresponds to the JSON property `fpVal` @return [Float]

int_val[RW]

Integer value. When this is set, other values must not be set. Corresponds to the JSON property `intVal` @return [Fixnum]

map_val[RW]

Map value. The valid key space and units for the corresponding value of each entry should be documented as part of the data type definition. Keys should be kept small whenever possible. Data streams with large keys and high data frequency may be down sampled. Corresponds to the JSON property `mapVal` @return [Array<Google::Apis::FitnessV1::ValueMapValEntry>]

string_val[RW]

String value. When this is set, other values must not be set. Strings should be kept small whenever possible. Data streams with large string values and high data frequency may be down sampled. Corresponds to the JSON property `stringVal` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/fitness_v1/classes.rb, line 942
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/fitness_v1/classes.rb, line 947
def update!(**args)
  @fp_val = args[:fp_val] if args.key?(:fp_val)
  @int_val = args[:int_val] if args.key?(:int_val)
  @map_val = args[:map_val] if args.key?(:map_val)
  @string_val = args[:string_val] if args.key?(:string_val)
end