Class: Seam::Resources::SeamEvent::DeviceDeleted

Inherits:
SeamEvent
  • Object
show all
Defined in:
lib/seam/resources/event.rb

Overview

A device was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connected_account_custom_metadataHash{String => String, Boolean}?

Custom metadata of the connected account, present when connected_account_id is provided.

Returns:

  • (Hash{String => String, Boolean}, nil)


3621
3622
3623
# File 'lib/seam/resources/event.rb', line 3621

def 
  @connected_account_custom_metadata
end

#connected_account_idString

ID of the connected account associated with the event.

Returns:

  • (String)


3624
3625
3626
# File 'lib/seam/resources/event.rb', line 3624

def 
  @connected_account_id
end

#customer_keyString?

The customer key associated with the device, if any.

Returns:

  • (String, nil)


3627
3628
3629
# File 'lib/seam/resources/event.rb', line 3627

def customer_key
  @customer_key
end

#device_custom_metadataHash{String => String, Boolean}?

Custom metadata of the device, present when device_id is provided.

Returns:

  • (Hash{String => String, Boolean}, nil)


3630
3631
3632
# File 'lib/seam/resources/event.rb', line 3630

def 
  @device_custom_metadata
end

#device_idString

ID of the affected device.

Returns:

  • (String)


3633
3634
3635
# File 'lib/seam/resources/event.rb', line 3633

def device_id
  @device_id
end

#device_nameString?

Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name.

Returns:

  • (String, nil)


3636
3637
3638
# File 'lib/seam/resources/event.rb', line 3636

def device_name
  @device_name
end

#event_descriptionString?

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.

Returns:

  • (String, nil)


3639
3640
3641
# File 'lib/seam/resources/event.rb', line 3639

def event_description
  @event_description
end

#event_idString

ID of the event.

Returns:

  • (String)


3642
3643
3644
# File 'lib/seam/resources/event.rb', line 3642

def event_id
  @event_id
end

#event_typeString

Known values:

  • device.deleted

Returns:

  • (String)


3646
3647
3648
# File 'lib/seam/resources/event.rb', line 3646

def event_type
  @event_type
end

#workspace_idString

ID of the workspace associated with the event.

Returns:

  • (String)


3649
3650
3651
# File 'lib/seam/resources/event.rb', line 3649

def workspace_id
  @workspace_id
end

Instance Method Details

#created_atTime

Date and time at which the event was created.

Returns:

  • (Time)


3652
# File 'lib/seam/resources/event.rb', line 3652

date_accessor :created_at

#occurred_atTime

Date and time at which the event occurred.

Returns:

  • (Time)


3655
# File 'lib/seam/resources/event.rb', line 3655

date_accessor :occurred_at