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.



374
375
376
# File 'lib/google/apis/homegraph_v1/classes.rb', line 374

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)


367
368
369
# File 'lib/google/apis/homegraph_v1/classes.rb', line 367

def device_id
  @device_id
end

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

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



372
373
374
# File 'lib/google/apis/homegraph_v1/classes.rb', line 372

def events
  @events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



379
380
381
382
# File 'lib/google/apis/homegraph_v1/classes.rb', line 379

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