Class: Trycourier::Resources::Requests
- Inherits:
-
Object
- Object
- Trycourier::Resources::Requests
- Defined in:
- lib/trycourier/resources/requests.rb
Instance Method Summary collapse
-
#archive(request_id, request_options: {}) ⇒ nil
Archive message.
-
#initialize(client:) ⇒ Requests
constructor
private
A new instance of Requests.
Constructor Details
#initialize(client:) ⇒ Requests
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Requests.
29 30 31 |
# File 'lib/trycourier/resources/requests.rb', line 29 def initialize(client:) @client = client end |
Instance Method Details
#archive(request_id, request_options: {}) ⇒ nil
Archive message
17 18 19 20 21 22 23 24 |
# File 'lib/trycourier/resources/requests.rb', line 17 def archive(request_id, params = {}) @client.request( method: :put, path: ["requests/%1$s/archive", request_id], model: NilClass, options: params[:request_options] ) end |