Class: Trycourier::Resources::Notifications::Draft
- Inherits:
-
Object
- Object
- Trycourier::Resources::Notifications::Draft
- Defined in:
- lib/trycourier/resources/notifications/draft.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Draft
constructor
private
A new instance of Draft.
- #retrieve_content(id, request_options: {}) ⇒ Trycourier::Models::NotificationGetContent
Constructor Details
#initialize(client:) ⇒ Draft
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 Draft.
27 28 29 |
# File 'lib/trycourier/resources/notifications/draft.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#retrieve_content(id, request_options: {}) ⇒ Trycourier::Models::NotificationGetContent
15 16 17 18 19 20 21 22 |
# File 'lib/trycourier/resources/notifications/draft.rb', line 15 def retrieve_content(id, params = {}) @client.request( method: :get, path: ["notifications/%1$s/draft/content", id], model: Trycourier::NotificationGetContent, options: params[:request_options] ) end |