Class: MatViews::Admin::DefaultAuth::SampleUser

Inherits:
Object
  • Object
show all
Defined in:
lib/mat_views/admin/default_auth.rb

Overview

Minimal stand-in user object used by the default auth.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email) ⇒ SampleUser

Returns a new instance of SampleUser.

Parameters:

  • email (String)


30
# File 'lib/mat_views/admin/default_auth.rb', line 30

def initialize(email) = @email = email

Instance Attribute Details

#emailString

Returns the email address of the sample user.

Returns:

  • (String)

    the email address of the sample user



26
27
28
29
30
31
32
33
34
# File 'lib/mat_views/admin/default_auth.rb', line 26

class SampleUser
  attr_accessor :email

  # @param email [String]
  def initialize(email) = @email = email

  # @return [String] the user's email
  def to_s = email
end

Instance Method Details

#to_sString

Returns the user’s email.

Returns:

  • (String)

    the user’s email



33
# File 'lib/mat_views/admin/default_auth.rb', line 33

def to_s = email