Method: NgrokAPI::Services::EventSourcesClient#get
- Defined in:
- lib/ngrokapi/services/event_sources_client.rb
#get(subscription_id: "", type: "") ⇒ NgrokAPI::Models::EventSource
Get the details for a given type that triggers for the given event subscription
101 102 103 104 105 106 107 108 109 110 |
# File 'lib/ngrokapi/services/event_sources_client.rb', line 101 def get(subscription_id: "", type: "") path = '/event_subscriptions/%{subscription_id}/sources/%{type}' replacements = { subscription_id: subscription_id, type: type, } data = {} result = @client.get(path % replacements, data: data) NgrokAPI::Models::EventSource.new(client: self, attrs: result) end |