Class: Google::Apis::FitnessV1::MapValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fitness_v1/classes.rb,
generated/google/apis/fitness_v1/representations.rb,
generated/google/apis/fitness_v1/representations.rb

Overview

Holder object for the value of an entry in a map field of a data point. A map value supports a subset of the formats that the regular Value supports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MapValue

Returns a new instance of MapValue.



839
840
841
# File 'generated/google/apis/fitness_v1/classes.rb', line 839

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

Instance Attribute Details

#fp_valFloat

Floating point value. Corresponds to the JSON property fpVal

Returns:

  • (Float)


837
838
839
# File 'generated/google/apis/fitness_v1/classes.rb', line 837

def fp_val
  @fp_val
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



844
845
846
# File 'generated/google/apis/fitness_v1/classes.rb', line 844

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