Class: MatViews::Admin::DefaultAuth::SampleUser
- Inherits:
-
Object
- Object
- MatViews::Admin::DefaultAuth::SampleUser
- Defined in:
- lib/mat_views/admin/default_auth.rb
Overview
Minimal stand-in user object used by the default auth.
Instance Attribute Summary collapse
-
#email ⇒ String
The email address of the sample user.
Instance Method Summary collapse
-
#initialize(email) ⇒ SampleUser
constructor
A new instance of SampleUser.
-
#to_s ⇒ String
The user’s email.
Constructor Details
#initialize(email) ⇒ SampleUser
Returns a new instance of SampleUser.
30 |
# File 'lib/mat_views/admin/default_auth.rb', line 30 def initialize(email) = @email = email |
Instance Attribute Details
#email ⇒ String
Returns 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_s ⇒ String
Returns the user’s email.
33 |
# File 'lib/mat_views/admin/default_auth.rb', line 33 def to_s = email |