Class: SimplyAuth::ResetPasswordToken

Inherits:
Model
  • Object
show all
Defined in:
app/models/simply_auth/reset_password_token.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#attributes=, collection_path, #collection_path, create, #data, #data=, find, #initialize, instance_path, #instance_path, owner_class, path_component, #persisted=, #persisted?, #save

Constructor Details

This class inherits a constructor from SimplyAuth::Model

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'app/models/simply_auth/reset_password_token.rb', line 3

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'app/models/simply_auth/reset_password_token.rb', line 3

def email
  @email
end

#expires_atObject

Returns the value of attribute expires_at.



3
4
5
# File 'app/models/simply_auth/reset_password_token.rb', line 3

def expires_at
  @expires_at
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'app/models/simply_auth/reset_password_token.rb', line 3

def user
  @user
end

#user_pool_idObject

Returns the value of attribute user_pool_id.



3
4
5
# File 'app/models/simply_auth/reset_password_token.rb', line 3

def user_pool_id
  @user_pool_id
end

Class Method Details

.owner_class_nameObject



12
13
14
# File 'app/models/simply_auth/reset_password_token.rb', line 12

def self.owner_class_name
  "UserPool"
end

Instance Method Details

#attributesObject



5
6
7
# File 'app/models/simply_auth/reset_password_token.rb', line 5

def attributes
  super.merge(email: email)
end

#owner_idObject



15
16
17
# File 'app/models/simply_auth/reset_password_token.rb', line 15

def owner_id
  user_pool_id
end