Class: Courier::Resources::Inbound
- Inherits:
-
Object
- Object
- Courier::Resources::Inbound
- Defined in:
- lib/courier/resources/inbound.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Inbound
constructor
private
A new instance of Inbound.
-
#track_event(event:, message_id:, properties:, type:, user_id: nil, request_options: {}) ⇒ Courier::Models::InboundTrackEventResponse
Some parameter documentations has been truncated, see Models::InboundTrackEventParams for more details.
Constructor Details
#initialize(client:) ⇒ Inbound
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 Inbound.
42 43 44 |
# File 'lib/courier/resources/inbound.rb', line 42 def initialize(client:) @client = client end |
Instance Method Details
#track_event(event:, message_id:, properties:, type:, user_id: nil, request_options: {}) ⇒ Courier::Models::InboundTrackEventResponse
Some parameter documentations has been truncated, see Models::InboundTrackEventParams for more details.
Courier Track Event
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/courier/resources/inbound.rb', line 28 def track_event(params) parsed, = Courier::InboundTrackEventParams.dump_request(params) @client.request( method: :post, path: "inbound/courier", body: parsed, model: Courier::Models::InboundTrackEventResponse, options: ) end |