Class: Google::Apis::FitnessV1::DataType

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

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) ⇒ DataType

Returns a new instance of DataType



558
559
560
# File 'generated/google/apis/fitness_v1/classes.rb', line 558

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

Instance Attribute Details

#fieldArray<Google::Apis::FitnessV1::DataTypeField>

A field represents one dimension of a data type. Corresponds to the JSON property field



550
551
552
# File 'generated/google/apis/fitness_v1/classes.rb', line 550

def field
  @field
end

#nameString

Each data type has a unique, namespaced, name. All data types in the com. google namespace are shared as part of the platform. Corresponds to the JSON property name

Returns:

  • (String)


556
557
558
# File 'generated/google/apis/fitness_v1/classes.rb', line 556

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



563
564
565
566
# File 'generated/google/apis/fitness_v1/classes.rb', line 563

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