Class: Seam::Resources::ActionAttempt::ActivateClimatePreset

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

Overview

Activating a climate preset 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)


1208
1209
1210
# File 'lib/seam/resources/action_attempt.rb', line 1208

def action_attempt_id
  @action_attempt_id
end

#action_typeString

Action attempt to track the status of a climate preset activation. Known values:

  • ACTIVATE_CLIMATE_PRESET

Returns:

  • (String)


1213
1214
1215
# File 'lib/seam/resources/action_attempt.rb', line 1213

def action_type
  @action_type
end

#statusString

Known values:

  • success
  • pending
  • error

Returns:

  • (String)


1219
1220
1221
# File 'lib/seam/resources/action_attempt.rb', line 1219

def status
  @status
end

Instance Method Details

#errorError?

Error associated with the action.

Returns:



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

resource_accessor :error, Error

#resultResult?

Result of the action.

Returns:



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

resource_accessor :result, Result