Class: Google::Apis::HomegraphV1::DeviceInfo
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::DeviceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/homegraph_v1/classes.rb,
generated/google/apis/homegraph_v1/representations.rb,
generated/google/apis/homegraph_v1/representations.rb
Overview
Device information.
Instance Attribute Summary collapse
-
#hw_version ⇒ String
Device hardware version.
-
#manufacturer ⇒ String
Device manufacturer.
-
#model ⇒ String
Device model.
-
#sw_version ⇒ String
Device software version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceInfo
constructor
A new instance of DeviceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceInfo
Returns a new instance of DeviceInfo.
193 194 195 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hw_version ⇒ String
Device hardware version.
Corresponds to the JSON property hwVersion
176 177 178 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 176 def hw_version @hw_version end |
#manufacturer ⇒ String
Device manufacturer.
Corresponds to the JSON property manufacturer
181 182 183 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 181 def manufacturer @manufacturer end |
#model ⇒ String
Device model.
Corresponds to the JSON property model
186 187 188 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 186 def model @model end |
#sw_version ⇒ String
Device software version.
Corresponds to the JSON property swVersion
191 192 193 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 191 def sw_version @sw_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
198 199 200 201 202 203 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 198 def update!(**args) @hw_version = args[:hw_version] if args.key?(:hw_version) @manufacturer = args[:manufacturer] if args.key?(:manufacturer) @model = args[:model] if args.key?(:model) @sw_version = args[:sw_version] if args.key?(:sw_version) end |