Class: Seam::Resources::ActionAttempt::SetHvacMode

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

Overview

Setting the HVAC 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)


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

def action_attempt_id
  @action_attempt_id
end

#action_typeString

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

  • SET_HVAC_MODE

Returns:

  • (String)


1180
1181
1182
# File 'lib/seam/resources/action_attempt.rb', line 1180

def action_type
  @action_type
end

#statusString

Known values:

  • success
  • pending
  • error

Returns:

  • (String)


1186
1187
1188
# File 'lib/seam/resources/action_attempt.rb', line 1186

def status
  @status
end

Instance Method Details

#errorError?

Error associated with the action.

Returns:



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

resource_accessor :error, Error

#resultResult?

Result of the action.

Returns:



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

resource_accessor :result, Result