Class: Seam::Clients::ActionAttempts
- Inherits:
-
BaseClient
- Object
- BaseClient
- Seam::Clients::ActionAttempts
- Defined in:
- lib/seam/clients/action_attempts.rb
Instance Attribute Summary
Attributes inherited from BaseClient
Instance Method Summary collapse
Methods inherited from BaseClient
#initialize, #request_seam, #request_seam_object
Constructor Details
This class inherits a constructor from Seam::Clients::BaseClient
Instance Method Details
#get(action_attempt_id:, wait_for_action_attempt: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/seam/clients/action_attempts.rb', line 6 def get(action_attempt_id:, wait_for_action_attempt: nil) action_attempt = request_seam_object( :post, "/action_attempts/get", Seam::ActionAttempt, "action_attempt", body: {action_attempt_id: action_attempt_id}.compact ) action_attempt.decide_and_wait(wait_for_action_attempt) action_attempt end |
#list(action_attempt_ids:) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/seam/clients/action_attempts.rb', line 19 def list(action_attempt_ids:) request_seam_object( :post, "/action_attempts/list", Seam::ActionAttempt, "action_attempts", body: {action_attempt_ids: action_attempt_ids}.compact ) end |