Class: NgrokAPI::Models::EndpointOAuth
- Inherits:
-
Object
- Object
- NgrokAPI::Models::EndpointOAuth
- Defined in:
- lib/ngrokapi/models/endpoint_o_auth.rb
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
-
#auth_check_interval ⇒ Object
readonly
Returns the value of attribute auth_check_interval.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#cookie_prefix ⇒ Object
readonly
Returns the value of attribute cookie_prefix.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#inactivity_timeout ⇒ Object
readonly
Returns the value of attribute inactivity_timeout.
-
#maximum_duration ⇒ Object
readonly
Returns the value of attribute maximum_duration.
-
#options_passthrough ⇒ Object
readonly
Returns the value of attribute options_passthrough.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client: nil, attrs: {}) ⇒ EndpointOAuth
constructor
A new instance of EndpointOAuth.
- #to_h ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(client: nil, attrs: {}) ⇒ EndpointOAuth
Returns a new instance of EndpointOAuth.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 18 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @enabled = @attrs['enabled'] @provider = @attrs['provider'] @options_passthrough = @attrs['options_passthrough'] @cookie_prefix = @attrs['cookie_prefix'] @inactivity_timeout = @attrs['inactivity_timeout'] @maximum_duration = @attrs['maximum_duration'] @auth_check_interval = @attrs['auth_check_interval'] end |
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def attrs @attrs end |
#auth_check_interval ⇒ Object (readonly)
Returns the value of attribute auth_check_interval.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def auth_check_interval @auth_check_interval end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def client @client end |
#cookie_prefix ⇒ Object (readonly)
Returns the value of attribute cookie_prefix.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def @cookie_prefix end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def enabled @enabled end |
#inactivity_timeout ⇒ Object (readonly)
Returns the value of attribute inactivity_timeout.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def inactivity_timeout @inactivity_timeout end |
#maximum_duration ⇒ Object (readonly)
Returns the value of attribute maximum_duration.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def maximum_duration @maximum_duration end |
#options_passthrough ⇒ Object (readonly)
Returns the value of attribute options_passthrough.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def @options_passthrough end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
8 9 10 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 8 def provider @provider end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 30 def ==(other) @attrs == other.attrs end |
#to_h ⇒ Object
38 39 40 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 38 def to_h @attrs.to_h end |
#to_s ⇒ Object
34 35 36 |
# File 'lib/ngrokapi/models/endpoint_o_auth.rb', line 34 def to_s @attrs.to_s end |