Class: Seam::Resources::ActionAttempt::UnlockDoor

Inherits:
ActionAttempt
  • Object
show all
Defined in:
lib/seam/resources/action_attempt.rb

Overview

Unlocking a door is pending.

Defined Under Namespace

Classes: Error, Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#action_attempt_idString

ID of the action attempt.

Returns:

  • (String)


88
89
90
# File 'lib/seam/resources/action_attempt.rb', line 88

def action_attempt_id
  @action_attempt_id
end

#action_typeString

Action attempt to track the status of unlocking a door. Known values:

  • UNLOCK_DOOR

Returns:

  • (String)


93
94
95
# File 'lib/seam/resources/action_attempt.rb', line 93

def action_type
  @action_type
end

#statusString

Known values:

  • success
  • pending
  • error

Returns:

  • (String)


99
100
101
# File 'lib/seam/resources/action_attempt.rb', line 99

def status
  @status
end

Instance Method Details

#errorError?

Error associated with the action. Only present when status is error; nil otherwise.

Returns:



79
# File 'lib/seam/resources/action_attempt.rb', line 79

resource_accessor :error, Error

#resultResult?

Result of the action. Only present when status is success; nil otherwise.

Returns:



84
# File 'lib/seam/resources/action_attempt.rb', line 84

resource_accessor :result, Result