Sha256: eb4affd5af27ffb166cc376f90b64f117f0f3a619c5a140ea5580372cb7bea70

Contents?: true

Size: 460 Bytes

Versions: 5

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EventSourceList
      attr_reader :client,
        :result,
        :sources,
        :uri

      def initialize(client:, result:)
        @client = client
        @result = result
        @sources = @result['sources']
        @uri = @result['uri']
      end

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

      def to_s
        @result.to_s
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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