Sha256: 07292b3f208393b1d53eb63cefa262faab8bd2588022556c27f4e6d068fd23bd

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EndpointSAML
      attr_reader :client,
        :result,
        :enabled,
        :options_passthrough,
        :cookie_prefix,
        :inactivity_timeout,
        :maximum_duration,
        :idp_metadata_url,
        :idp_metadata,
        :force_authn,
        :allow_idp_initiated,
        :authorized_groups,
        :entity_id,
        :assertion_consumer_service_url,
        :single_logout_url,
        :request_signing_certificate_pem,
        :metadata_url,
        :nameid_format

      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']
        @idp_metadata_url = @result['idp_metadata_url']
        @idp_metadata = @result['idp_metadata']
        @force_authn = @result['force_authn']
        @allow_idp_initiated = @result['allow_idp_initiated']
        @authorized_groups = @result['authorized_groups']
        @entity_id = @result['entity_id']
        @assertion_consumer_service_url = @result['assertion_consumer_service_url']
        @single_logout_url = @result['single_logout_url']
        @request_signing_certificate_pem = @result['request_signing_certificate_pem']
        @metadata_url = @result['metadata_url']
        @nameid_format = @result['nameid_format']
      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_saml.rb
ngrok-api-0.17.0 lib/ngrokapi/models/endpoint_saml.rb
ngrok-api-0.16.0 lib/ngrokapi/models/endpoint_saml.rb
ngrok-api-0.15.0 lib/ngrokapi/models/endpoint_saml.rb
ngrok-api-0.14.0 lib/ngrokapi/models/endpoint_saml.rb
ngrok-api-0.12.0 lib/ngrokapi/models/endpoint_saml.rb