Class: NgrokAPI::Models::EndpointOAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/endpoint_o_auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:, result:) ⇒ EndpointOAuth

Returns a new instance of EndpointOAuth.



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 16

def initialize(client:, result:)
  @client = client
  @result = result
  @enabled = @result['enabled']
  @provider = @result['provider']
  @options_passthrough = @result['options_passthrough']
  @cookie_prefix = @result['cookie_prefix']
  @inactivity_timeout = @result['inactivity_timeout']
  @maximum_duration = @result['maximum_duration']
  @auth_check_interval = @result['auth_check_interval']
end

Instance Attribute Details

#auth_check_intervalObject (readonly)

Returns the value of attribute auth_check_interval.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def auth_check_interval
  @auth_check_interval
end

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def client
  @client
end

Returns the value of attribute cookie_prefix.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def cookie_prefix
  @cookie_prefix
end

#enabledObject (readonly)

Returns the value of attribute enabled.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def enabled
  @enabled
end

#inactivity_timeoutObject (readonly)

Returns the value of attribute inactivity_timeout.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def inactivity_timeout
  @inactivity_timeout
end

#maximum_durationObject (readonly)

Returns the value of attribute maximum_duration.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def maximum_duration
  @maximum_duration
end

#options_passthroughObject (readonly)

Returns the value of attribute options_passthrough.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def options_passthrough
  @options_passthrough
end

#providerObject (readonly)

Returns the value of attribute provider.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def provider
  @provider
end

#resultObject (readonly)

Returns the value of attribute result.



6
7
8
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 6

def result
  @result
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 28

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

#to_sObject



32
33
34
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 32

def to_s
  @result.to_s
end