Class: Supabase::Auth::Types::AuthMFAUnenrollResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/supabase/auth/types.rb

Overview

MFA Unenroll response

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



317
318
319
# File 'lib/supabase/auth/types.rb', line 317

def id
  @id
end

Class Method Details

.from_hash(hash) ⇒ Object



321
322
323
324
325
# File 'lib/supabase/auth/types.rb', line 321

def self.from_hash(hash)
  return nil if hash.nil?

  new(id: hash["id"] || hash[:id])
end