Class: Google::Apis::FitnessV1::DataType
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FitnessV1::DataType
 
- 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
- 
  
    
      #field  ⇒ Array<Google::Apis::FitnessV1::DataTypeField> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A field represents one dimension of a data type. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Each data type has a unique, namespaced, name. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DataType 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of DataType. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DataType
Returns a new instance of DataType
| 559 560 561 | # File 'generated/google/apis/fitness_v1/classes.rb', line 559 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#field ⇒ Array<Google::Apis::FitnessV1::DataTypeField>
A field represents one dimension of a data type.
Corresponds to the JSON property field
| 551 552 553 | # File 'generated/google/apis/fitness_v1/classes.rb', line 551 def field @field end | 
#name ⇒ String
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
| 557 558 559 | # File 'generated/google/apis/fitness_v1/classes.rb', line 557 def name @name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 564 565 566 567 | # File 'generated/google/apis/fitness_v1/classes.rb', line 564 def update!(**args) @field = args[:field] if args.key?(:field) @name = args[:name] if args.key?(:name) end |