Class: Google::Apis::HomegraphV1::HomeEvents
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::HomeEvents
- 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
-
#device_id ⇒ String
Required.
-
#events ⇒ Array<Google::Apis::HomegraphV1::Events>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HomeEvents
constructor
A new instance of HomeEvents.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
Required. / Unique identifier for the device.
Corresponds to the JSON property deviceId
347 348 349 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 347 def device_id @device_id end |
#events ⇒ Array<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 |