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.



220
221
222
# File 'lib/google/apis/homegraph_v1/classes.rb', line 220

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

Instance Attribute Details

#hw_versionString

Device hardware version. Corresponds to the JSON property hwVersion

Returns:

  • (String)


203
204
205
# File 'lib/google/apis/homegraph_v1/classes.rb', line 203

def hw_version
  @hw_version
end

#manufacturerString

Device manufacturer. Corresponds to the JSON property manufacturer

Returns:

  • (String)


208
209
210
# File 'lib/google/apis/homegraph_v1/classes.rb', line 208

def manufacturer
  @manufacturer
end

#modelString

Device model. Corresponds to the JSON property model

Returns:

  • (String)


213
214
215
# File 'lib/google/apis/homegraph_v1/classes.rb', line 213

def model
  @model
end

#sw_versionString

Device software version. Corresponds to the JSON property swVersion

Returns:

  • (String)


218
219
220
# File 'lib/google/apis/homegraph_v1/classes.rb', line 218

def sw_version
  @sw_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



225
226
227
228
229
230
# File 'lib/google/apis/homegraph_v1/classes.rb', line 225

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