mirror of
https://github.com/ngrok/ngrok-api-ruby.git
synced 2026-06-16 16:54:38 +00:00
30 lines
516 B
Ruby
30 lines
516 B
Ruby
# frozen_string_literal: true
|
|
|
|
module NgrokAPI
|
|
module Models
|
|
class EventSourceReplace
|
|
attr_reader :client,
|
|
:result,
|
|
:type,
|
|
:filter,
|
|
:fields
|
|
|
|
def initialize(client:, result:)
|
|
@client = client
|
|
@result = result
|
|
@type = @result['type']
|
|
@filter = @result['filter']
|
|
@fields = @result['fields']
|
|
end
|
|
|
|
def ==(other)
|
|
@result == other.result
|
|
end
|
|
|
|
def to_s
|
|
@result.to_s
|
|
end
|
|
end
|
|
end
|
|
end
|