Class: SimplyAuth::PasswordReset

Inherits:
Model
  • Object
show all
Defined in:
app/models/simply_auth/password_reset.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

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#reset_password_token_idObject

Returns the value of attribute reset_password_token_id.



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

def reset_password_token_id
  @reset_password_token_id
end

#user_pool_idObject

Returns the value of attribute user_pool_id.



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

def user_pool_id
  @user_pool_id
end

Class Method Details

.owner_class_nameObject



7
8
9
# File 'app/models/simply_auth/password_reset.rb', line 7

def self.owner_class_name
  "UserPool"
end

Instance Method Details

#attributesObject



4
5
6
# File 'app/models/simply_auth/password_reset.rb', line 4

def attributes
  super.merge(password: password, reset_password_token_id: reset_password_token_id, user_pool_id: user_pool_id)
end

#owner_idObject



10
11
12
# File 'app/models/simply_auth/password_reset.rb', line 10

def owner_id
  user_pool_id
end