Sha256: 26d36fc9facb01ca240c673e7f45121fcb5aea6622d7e30be9465656188224e8

Contents?: true

Size: 607 Bytes

Versions: 3

Compression:

Stored size: 607 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,
        :uri

      def initialize(client: nil, attrs: {})
        @client = client
        @attrs = attrs
        @type = @attrs['type']
        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

3 entries across 3 versions & 1 rubygems

Version Path
ngrok-api-0.24.0 lib/ngrokapi/models/event_source.rb
ngrok-api-0.23.0 lib/ngrokapi/models/event_source.rb
ngrok-api-0.22.0 lib/ngrokapi/models/event_source.rb