Class: Google::Apis::HomegraphV1::DeviceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/homegraph_v1/classes.rb,
lib/google/apis/homegraph_v1/representations.rb,
lib/google/apis/homegraph_v1/representations.rb

Overview

Device information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceInfo

Returns a new instance of DeviceInfo.



325
326
327
# File 'lib/google/apis/homegraph_v1/classes.rb', line 325

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

Instance Attribute Details

#hw_versionString

Device hardware version. Corresponds to the JSON property hwVersion

Returns:

  • (String)


308
309
310
# File 'lib/google/apis/homegraph_v1/classes.rb', line 308

def hw_version
  @hw_version
end

#manufacturerString

Device manufacturer. Corresponds to the JSON property manufacturer

Returns:

  • (String)


313
314
315
# File 'lib/google/apis/homegraph_v1/classes.rb', line 313

def manufacturer
  @manufacturer
end

#modelString

Device model. Corresponds to the JSON property model

Returns:

  • (String)


318
319
320
# File 'lib/google/apis/homegraph_v1/classes.rb', line 318

def model
  @model
end

#sw_versionString

Device software version. Corresponds to the JSON property swVersion

Returns:

  • (String)


323
324
325
# File 'lib/google/apis/homegraph_v1/classes.rb', line 323

def sw_version
  @sw_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



330
331
332
333
334
335
# File 'lib/google/apis/homegraph_v1/classes.rb', line 330

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