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)


1136
1137
1138
# File 'lib/seam/resources/action_attempt.rb', line 1136

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)


1141
1142
1143
# File 'lib/seam/resources/action_attempt.rb', line 1141

def action_type
  @action_type
end

#statusString

Known values:

  • success
  • pending
  • error

Returns:

  • (String)


1147
1148
1149
# File 'lib/seam/resources/action_attempt.rb', line 1147

def status
  @status
end

Instance Method Details

#errorError?

Error associated with the action.

Returns:



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

resource_accessor :error, Error

#resultResult?

Result of the action.

Returns:



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

resource_accessor :result, Result