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.



354
355
356
# File 'lib/google/apis/homegraph_v1/classes.rb', line 354

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)


347
348
349
# File 'lib/google/apis/homegraph_v1/classes.rb', line 347

def device_id
  @device_id
end

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

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



352
353
354
# File 'lib/google/apis/homegraph_v1/classes.rb', line 352

def events
  @events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
# File 'lib/google/apis/homegraph_v1/classes.rb', line 359

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