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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReportStateAndNotificationDevice

Returns a new instance of ReportStateAndNotificationDevice.



419
420
421
# File 'generated/google/apis/homegraph_v1/classes.rb', line 419

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

Instance Attribute Details

#notificationsHash<String,Object>

Notifications metadata for devices. Corresponds to the JSON property notifications

Returns:

  • (Hash<String,Object>)


412
413
414
# File 'generated/google/apis/homegraph_v1/classes.rb', line 412

def notifications
  @notifications
end

#statesHash<String,Object>

States of devices to update. Corresponds to the JSON property states

Returns:

  • (Hash<String,Object>)


417
418
419
# File 'generated/google/apis/homegraph_v1/classes.rb', line 417

def states
  @states
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



424
425
426
427
# File 'generated/google/apis/homegraph_v1/classes.rb', line 424

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