Class: Google::Apis::HealthV4::Device
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::Device
- 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
-
#display_name ⇒ String
Optional.
-
#form_factor ⇒ String
Optional.
-
#manufacturer ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Device
constructor
A new instance of Device.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Device
Returns a new instance of Device.
1529 1530 1531 |
# File 'lib/google/apis/health_v4/classes.rb', line 1529 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Optional. An optional name for the device.
Corresponds to the JSON property displayName
1517 1518 1519 |
# File 'lib/google/apis/health_v4/classes.rb', line 1517 def display_name @display_name end |
#form_factor ⇒ String
Optional. Captures the form factor of the device.
Corresponds to the JSON property formFactor
1522 1523 1524 |
# File 'lib/google/apis/health_v4/classes.rb', line 1522 def form_factor @form_factor end |
#manufacturer ⇒ String
Optional. An optional manufacturer of the device.
Corresponds to the JSON property manufacturer
1527 1528 1529 |
# File 'lib/google/apis/health_v4/classes.rb', line 1527 def manufacturer @manufacturer end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1534 1535 1536 1537 1538 |
# File 'lib/google/apis/health_v4/classes.rb', line 1534 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 |