lib/ngrokapi/models/event_subscription.rb in ngrok-api-0.19.0 vs lib/ngrokapi/models/event_subscription.rb in ngrok-api-0.21.0

- old
+ new

@@ -1,7 +1,11 @@ # frozen_string_literal: true +# Code generated for API Clients. DO NOT EDIT. + +require 'uri' + module NgrokAPI module Models class EventSubscription attr_reader :client, :attrs, @@ -15,10 +19,12 @@ def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] - @uri = @attrs['uri'] + unless @attrs['uri'].nil? + @uri = URI(@attrs['uri']) + end @created_at = @attrs['created_at'] @metadata = @attrs['metadata'] @description = @attrs['description'] @sources = @attrs['sources'] @destinations = @attrs['destinations']