Class: BetterAuth::OAuthState::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/better_auth/oauth_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, error_url: nil) ⇒ Error

Returns a new instance of Error.



18
19
20
21
22
# File 'lib/better_auth/oauth_state.rb', line 18

def initialize(code, error_url: nil)
  @code = code
  @error_url = error_url
  super(code)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



16
17
18
# File 'lib/better_auth/oauth_state.rb', line 16

def code
  @code
end

#error_urlObject (readonly)

Returns the value of attribute error_url.



16
17
18
# File 'lib/better_auth/oauth_state.rb', line 16

def error_url
  @error_url
end