Class: Hookdeck::Resources::Attempt
- Defined in:
- lib/hookdeck/resources/attempt.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #list(params = {}) ⇒ Object
-
#retrieve(id) ⇒ Hash
Retrieves an attempt by ID.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Hookdeck::Resources::Base
Instance Method Details
#list(params = {}) ⇒ Object
10 11 12 |
# File 'lib/hookdeck/resources/attempt.rb', line 10 def list(params = {}) get('attempts', params) end |
#retrieve(id) ⇒ Hash
Retrieves an attempt by ID.
18 19 20 21 |
# File 'lib/hookdeck/resources/attempt.rb', line 18 def retrieve(id) validate_id!(id, 'atm_') get("attempts/#{id}") end |