Sha256: 1ca3311aebf575f1916755544620307f9ebb919edbcc0524f32b4efa57c4710a

Contents?: true

Size: 711 Bytes

Versions: 1

Compression:

Stored size: 711 Bytes

Contents

# frozen_string_literal: true

# Code generated for API Clients. DO NOT EDIT.

require 'uri'

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']
        unless @attrs['uri'].nil?
          @uri = URI(@attrs['uri'])
        end
      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.21.0 lib/ngrokapi/models/event_source.rb