Class: Seam::Resources::ActionAttempt::PushThermostatPrograms

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

Overview

Pushing thermostat weekly programs 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)


1316
1317
1318
# File 'lib/seam/resources/action_attempt.rb', line 1316

def action_attempt_id
  @action_attempt_id
end

#action_typeString

Action attempt to track the status of pushing thermostat programs. Known values:

  • PUSH_THERMOSTAT_PROGRAMS

Returns:

  • (String)


1321
1322
1323
# File 'lib/seam/resources/action_attempt.rb', line 1321

def action_type
  @action_type
end

#statusString

Known values:

  • success
  • pending
  • error

Returns:

  • (String)


1327
1328
1329
# File 'lib/seam/resources/action_attempt.rb', line 1327

def status
  @status
end

Instance Method Details

#errorError?

Error associated with the action.

Returns:



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

resource_accessor :error, Error

#resultResult?

Result of the action.

Returns:



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

resource_accessor :result, Result