Class: Google::Apis::HomegraphV1::PersonEvent
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::PersonEvent
- 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
Represents a newly detected person event.
Instance Attribute Summary collapse
-
#common_event_data ⇒ Google::Apis::HomegraphV1::CommonEventDataStruct
Common camera event data.
-
#zones ⇒ Array<Google::Apis::HomegraphV1::ZoneStruct>
Zones where events are detected in.
-
#zones_is_empty ⇒ Boolean
(also: #zones_is_empty?)
If set, zones is an empty list.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersonEvent
constructor
A new instance of PersonEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersonEvent
Returns a new instance of PersonEvent.
797 798 799 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 797 def initialize(**args) update!(**args) end |
Instance Attribute Details
#common_event_data ⇒ Google::Apis::HomegraphV1::CommonEventDataStruct
Common camera event data.
Corresponds to the JSON property commonEventData
784 785 786 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 784 def common_event_data @common_event_data end |
#zones ⇒ Array<Google::Apis::HomegraphV1::ZoneStruct>
Zones where events are detected in.
Corresponds to the JSON property zones
789 790 791 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 789 def zones @zones end |
#zones_is_empty ⇒ Boolean Also known as: zones_is_empty?
If set, zones is an empty list.
Corresponds to the JSON property zonesIsEmpty
794 795 796 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 794 def zones_is_empty @zones_is_empty end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
802 803 804 805 806 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 802 def update!(**args) @common_event_data = args[:common_event_data] if args.key?(:common_event_data) @zones = args[:zones] if args.key?(:zones) @zones_is_empty = args[:zones_is_empty] if args.key?(:zones_is_empty) end |