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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_versionString

Device hardware version. Corresponds to the JSON property hwVersion

Returns:

  • (String)


176
177
178
# File 'generated/google/apis/homegraph_v1/classes.rb', line 176

def hw_version
  @hw_version
end

#manufacturerString

Device manufacturer. Corresponds to the JSON property manufacturer

Returns:

  • (String)


181
182
183
# File 'generated/google/apis/homegraph_v1/classes.rb', line 181

def manufacturer
  @manufacturer
end

#modelString

Device model. Corresponds to the JSON property model

Returns:

  • (String)


186
187
188
# File 'generated/google/apis/homegraph_v1/classes.rb', line 186

def model
  @model
end

#sw_versionString

Device software version. Corresponds to the JSON property swVersion

Returns:

  • (String)


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