Sha256: 00c82d554bccc020bb616a501af381db5755ff0b321fb04a5eb7a855c363776e

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EventSource
      attr_reader :client,
        :attrs,
        :type,
        :filter,
        :fields,
        :uri

      def initialize(client: nil, attrs: {})
        @client = client
        @attrs = attrs
        @type = @attrs['type']
        @filter = @attrs['filter']
        @fields = @attrs['fields']
        @uri = @attrs['uri']
      end

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

      def to_s
        @attrs.to_s
      end

      def to_h
        @attrs.to_h
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ngrok-api-0.19.0 lib/ngrokapi/models/event_source.rb