lib/ngrokapi/models/event_target_firehose.rb in ngrok-api-0.18.0 vs lib/ngrokapi/models/event_target_firehose.rb in ngrok-api-0.19.0
- old
+ new
@@ -2,26 +2,30 @@
module NgrokAPI
module Models
class EventTargetFirehose
attr_reader :client,
- :result,
+ :attrs,
:auth,
:delivery_stream_arn
- def initialize(client:, result:)
+ def initialize(client: nil, attrs: {})
@client = client
- @result = result
- @auth = @result['auth']
- @delivery_stream_arn = @result['delivery_stream_arn']
+ @attrs = attrs
+ @auth = @attrs['auth']
+ @delivery_stream_arn = @attrs['delivery_stream_arn']
end
def ==(other)
- @result == other.result
+ @attrs == other.attrs
end
def to_s
- @result.to_s
+ @attrs.to_s
+ end
+
+ def to_h
+ @attrs.to_h
end
end
end
end