Class: WOWSQL::AuthUser

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

Overview

Represents an authenticated user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: '', email: '', full_name: nil, avatar_url: nil, email_verified: false, user_metadata: nil, app_metadata: nil, created_at: nil) ⇒ AuthUser

Returns a new instance of AuthUser.



12
13
14
15
16
# File 'lib/wowsql/auth.rb', line 12

def initialize(id: '', email: '', full_name: nil, avatar_url: nil,
               email_verified: false, user_metadata: nil,
               app_metadata: nil, created_at: nil)
  super
end

Instance Attribute Details

#app_metadataObject

Returns the value of attribute app_metadata

Returns:

  • (Object)

    the current value of app_metadata



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def 
  @app_metadata
end

#avatar_urlObject

Returns the value of attribute avatar_url

Returns:

  • (Object)

    the current value of avatar_url



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def avatar_url
  @avatar_url
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def email
  @email
end

#email_verifiedObject

Returns the value of attribute email_verified

Returns:

  • (Object)

    the current value of email_verified



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def email_verified
  @email_verified
end

#full_nameObject

Returns the value of attribute full_name

Returns:

  • (Object)

    the current value of full_name



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def full_name
  @full_name
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def id
  @id
end

#user_metadataObject

Returns the value of attribute user_metadata

Returns:

  • (Object)

    the current value of user_metadata



7
8
9
# File 'lib/wowsql/auth.rb', line 7

def 
  @user_metadata
end