Class: Google::Apis::HomegraphV1::HomeEvents

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

Contains the set of events for an item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HomeEvents

Returns a new instance of HomeEvents.



414
415
416
# File 'lib/google/apis/homegraph_v1/classes.rb', line 414

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

Instance Attribute Details

#device_idString

Required. / Unique identifier for the device. Corresponds to the JSON property deviceId

Returns:

  • (String)


407
408
409
# File 'lib/google/apis/homegraph_v1/classes.rb', line 407

def device_id
  @device_id
end

#eventsArray<Google::Apis::HomegraphV1::Events>

Required. List of events for the item. Corresponds to the JSON property events



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

def events
  @events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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