Class: Google::Apis::HomegraphV1::ReportStateAndNotificationDevice

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

The states and notifications specific to a device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportStateAndNotificationDevice

Returns a new instance of ReportStateAndNotificationDevice.



394
395
396
# File 'generated/google/apis/homegraph_v1/classes.rb', line 394

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

Instance Attribute Details

#notificationsHash<String,Object>

Notifications metadata for devices. See the Device NOTIFICATIONS section of the individual trait reference guides. Corresponds to the JSON property notifications

Returns:

  • (Hash<String,Object>)


385
386
387
# File 'generated/google/apis/homegraph_v1/classes.rb', line 385

def notifications
  @notifications
end

#statesHash<String,Object>

States of devices to update. See the Device STATES section of the individual trait reference guides. Corresponds to the JSON property states

Returns:

  • (Hash<String,Object>)


392
393
394
# File 'generated/google/apis/homegraph_v1/classes.rb', line 392

def states
  @states
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



399
400
401
402
# File 'generated/google/apis/homegraph_v1/classes.rb', line 399

def update!(**args)
  @notifications = args[:notifications] if args.key?(:notifications)
  @states = args[:states] if args.key?(:states)
end