Sha256: 5751eb64fae781dbfacdc81c24c8ecece0ece631f2aad8c7dd41f4ab02a2788d

Contents?: true

Size: 620 Bytes

Versions: 4

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

# Code generated for API Clients. DO NOT EDIT.

require 'uri'

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

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

4 entries across 4 versions & 1 rubygems

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