Class: Google::Apis::HomegraphV1::MotionEvent
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::MotionEvent
- 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 motion 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) ⇒ MotionEvent
constructor
A new instance of MotionEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MotionEvent
Returns a new instance of MotionEvent.
751 752 753 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 751 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
738 739 740 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 738 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
743 744 745 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 743 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
748 749 750 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 748 def zones_is_empty @zones_is_empty end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
756 757 758 759 760 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 756 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 |