class NgrokAPI::Models::EventDestination
Attributes
attrs[R]
client[R]
created_at[R]
description[R]
format[R]
id[R]
metadata[R]
target[R]
uri[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/event_destination.rb, line 16 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] @metadata = @attrs['metadata'] @created_at = @attrs['created_at'] @description = @attrs['description'] @format = @attrs['format'] @target = @attrs['target'] @uri = @attrs['uri'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/event_destination.rb, line 28 def ==(other) @attrs == other.attrs end
delete()
click to toggle source
Delete an Event Destination. If the Event Destination is still referenced by an Event Subscription.
ngrok.com/docs/api#api-event-destinations-delete
# File lib/ngrokapi/models/event_destination.rb, line 45 def delete @client.delete( id: @id ) end
to_h()
click to toggle source
# File lib/ngrokapi/models/event_destination.rb, line 36 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/event_destination.rb, line 32 def to_s @attrs.to_s end