Sha256: 5827520dc537b81491725d5ec0015713bfb639986fae9e781cef231e5d891644

Contents?: true

Size: 601 Bytes

Versions: 6

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EventTarget
      attr_reader :client,
        :result,
        :firehose,
        :kinesis,
        :cloudwatch_logs,
        :debug

      def initialize(client:, result:)
        @client = client
        @result = result
        @firehose = @result['firehose']
        @kinesis = @result['kinesis']
        @cloudwatch_logs = @result['cloudwatch_logs']
        @debug = @result['debug']
      end

      def ==(other)
        @result == other.result
      end

      def to_s
        @result.to_s
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ngrok-api-0.18.0 lib/ngrokapi/models/event_target.rb
ngrok-api-0.17.0 lib/ngrokapi/models/event_target.rb
ngrok-api-0.16.0 lib/ngrokapi/models/event_target.rb
ngrok-api-0.15.0 lib/ngrokapi/models/event_target.rb
ngrok-api-0.14.0 lib/ngrokapi/models/event_target.rb
ngrok-api-0.12.0 lib/ngrokapi/models/event_target.rb