Class: Seam::Resources::SeamEvent::LockUnlocked
- Inherits:
-
SeamEvent
- Object
- SeamEvent
- Seam::Resources::SeamEvent::LockUnlocked
- Defined in:
- lib/seam/resources/event.rb
Overview
A lock was unlocked.
Instance Attribute Summary collapse
-
#access_code_id ⇒ String?
ID of the access code that was used to unlock the affected device.
-
#access_code_is_managed ⇒ Boolean?
Whether the access code is managed by Seam (true) or unmanaged (false).
-
#action_attempt_id ⇒ String?
ID of the Seam action attempt that triggered this unlock.
-
#code ⇒ String?
Code (PIN) that was used to unlock the affected device, if known.
-
#connected_account_custom_metadata ⇒ Hash{String => String, Boolean}?
Custom metadata of the connected account, present when connected_account_id is provided.
-
#connected_account_id ⇒ String
ID of the connected account associated with the event.
-
#customer_key ⇒ String?
The customer key associated with the device, if any.
-
#device_custom_metadata ⇒ Hash{String => String, Boolean}?
Custom metadata of the device, present when device_id is provided.
-
#device_id ⇒ String?
ID of the affected device.
-
#event_description ⇒ String?
Human-readable description of the event.
-
#event_id ⇒ String
ID of the event.
-
#event_type ⇒ String
Known values: -
lock.unlocked. -
#is_via_bluetooth ⇒ Boolean?
Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
-
#is_via_nfc ⇒ Boolean?
Whether the unlock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.
-
#workspace_id ⇒ String
ID of the workspace associated with the event.
Instance Method Summary collapse
-
#created_at ⇒ Time
Date and time at which the event was created.
-
#event_method ⇒ String
Method by which the lock was unlocked.
-
#occurred_at ⇒ Time
Date and time at which the event occurred.
Instance Attribute Details
#access_code_id ⇒ String?
ID of the access code that was used to unlock the affected device.
4344 4345 4346 |
# File 'lib/seam/resources/event.rb', line 4344 def access_code_id @access_code_id end |
#access_code_is_managed ⇒ Boolean?
Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.
4347 4348 4349 |
# File 'lib/seam/resources/event.rb', line 4347 def access_code_is_managed @access_code_is_managed end |
#action_attempt_id ⇒ String?
ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an UNLOCK_DOOR action attempt).
4350 4351 4352 |
# File 'lib/seam/resources/event.rb', line 4350 def action_attempt_id @action_attempt_id end |
#code ⇒ String?
Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
4353 4354 4355 |
# File 'lib/seam/resources/event.rb', line 4353 def code @code end |
#connected_account_custom_metadata ⇒ Hash{String => String, Boolean}?
Custom metadata of the connected account, present when connected_account_id is provided.
4356 4357 4358 |
# File 'lib/seam/resources/event.rb', line 4356 def @connected_account_custom_metadata end |
#connected_account_id ⇒ String
ID of the connected account associated with the event.
4359 4360 4361 |
# File 'lib/seam/resources/event.rb', line 4359 def connected_account_id @connected_account_id end |
#customer_key ⇒ String?
The customer key associated with the device, if any.
4362 4363 4364 |
# File 'lib/seam/resources/event.rb', line 4362 def customer_key @customer_key end |
#device_custom_metadata ⇒ Hash{String => String, Boolean}?
Custom metadata of the device, present when device_id is provided.
4365 4366 4367 |
# File 'lib/seam/resources/event.rb', line 4365 def @device_custom_metadata end |
#device_id ⇒ String?
ID of the affected device.
4368 4369 4370 |
# File 'lib/seam/resources/event.rb', line 4368 def device_id @device_id end |
#event_description ⇒ String?
Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
4371 4372 4373 |
# File 'lib/seam/resources/event.rb', line 4371 def event_description @event_description end |
#event_id ⇒ String
ID of the event.
4374 4375 4376 |
# File 'lib/seam/resources/event.rb', line 4374 def event_id @event_id end |
#event_type ⇒ String
Known values:
lock.unlocked
4378 4379 4380 |
# File 'lib/seam/resources/event.rb', line 4378 def event_type @event_type end |
#is_via_bluetooth ⇒ Boolean?
Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
4381 4382 4383 |
# File 'lib/seam/resources/event.rb', line 4381 def is_via_bluetooth @is_via_bluetooth end |
#is_via_nfc ⇒ Boolean?
Whether the unlock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.
4384 4385 4386 |
# File 'lib/seam/resources/event.rb', line 4384 def is_via_nfc @is_via_nfc end |
#workspace_id ⇒ String
ID of the workspace associated with the event.
4397 4398 4399 |
# File 'lib/seam/resources/event.rb', line 4397 def workspace_id @workspace_id end |
Instance Method Details
#created_at ⇒ Time
Date and time at which the event was created.
4400 |
# File 'lib/seam/resources/event.rb', line 4400 date_accessor :created_at |
#event_method ⇒ String
Method by which the lock was unlocked. keycode: an access code was used (see access_code_id). manual: a physical action such as a thumbturn or handle press. remote: a remote action via an app, Bluetooth, or the Seam API (see action_attempt_id if Seam-initiated; see is_via_bluetooth or is_via_nfc for the transport). automatic: triggered automatically, for example by a time-based schedule. unknown: could not be determined.
Known values:
keycodemanualautomaticunknownremotecard
4394 |
# File 'lib/seam/resources/event.rb', line 4394 aliased_accessor :event_method, from: :method |
#occurred_at ⇒ Time
Date and time at which the event occurred.
4403 |
# File 'lib/seam/resources/event.rb', line 4403 date_accessor :occurred_at |