Class: Google::Apis::HealthV4::Device

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

Captures metadata about the device that recorded the measurement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Device

Returns a new instance of Device.



1563
1564
1565
# File 'lib/google/apis/health_v4/classes.rb', line 1563

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

Instance Attribute Details

#display_nameString

Optional. An optional name for the device. Corresponds to the JSON property displayName

Returns:

  • (String)


1551
1552
1553
# File 'lib/google/apis/health_v4/classes.rb', line 1551

def display_name
  @display_name
end

#form_factorString

Optional. Captures the form factor of the device. Corresponds to the JSON property formFactor

Returns:

  • (String)


1556
1557
1558
# File 'lib/google/apis/health_v4/classes.rb', line 1556

def form_factor
  @form_factor
end

#manufacturerString

Optional. An optional manufacturer of the device. Corresponds to the JSON property manufacturer

Returns:

  • (String)


1561
1562
1563
# File 'lib/google/apis/health_v4/classes.rb', line 1561

def manufacturer
  @manufacturer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1568
1569
1570
1571
1572
# File 'lib/google/apis/health_v4/classes.rb', line 1568

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