Sha256: 5314e32c7899404e2992721c5c40bad608fd30595e120ad21fcb563ece108dfd

Contents?: true

Size: 993 Bytes

Versions: 6

Compression:

Stored size: 993 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EndpointOIDC
      attr_reader :client,
        :result,
        :enabled,
        :options_passthrough,
        :cookie_prefix,
        :inactivity_timeout,
        :maximum_duration,
        :issuer,
        :client_id,
        :client_secret,
        :scopes

      def initialize(client:, result:)
        @client = client
        @result = result
        @enabled = @result['enabled']
        @options_passthrough = @result['options_passthrough']
        @cookie_prefix = @result['cookie_prefix']
        @inactivity_timeout = @result['inactivity_timeout']
        @maximum_duration = @result['maximum_duration']
        @issuer = @result['issuer']
        @client_id = @result['client_id']
        @client_secret = @result['client_secret']
        @scopes = @result['scopes']
      end

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

      def to_s
        @result.to_s
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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