Class: Seam::Resources::ActionAttempt::SetFanMode

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

Overview

Setting the fan mode 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)


1171
1172
1173
# File 'lib/seam/resources/action_attempt.rb', line 1171

def action_attempt_id
  @action_attempt_id
end

#action_typeString

Action attempt to track the status of setting the fan mode on a thermostat. Known values:

  • SET_FAN_MODE

Returns:

  • (String)


1176
1177
1178
# File 'lib/seam/resources/action_attempt.rb', line 1176

def action_type
  @action_type
end

#statusString

Known values:

  • success
  • pending
  • error

Returns:

  • (String)


1182
1183
1184
# File 'lib/seam/resources/action_attempt.rb', line 1182

def status
  @status
end

Instance Method Details

#errorError?

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

Returns:



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

resource_accessor :error, Error

#resultResult?

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

Returns:



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

resource_accessor :result, Result