Class: LockstepSdk::TransferOwnerModel
- Inherits:
-
Object
- Object
- LockstepSdk::TransferOwnerModel
- Defined in:
- lib/lockstep_sdk/models/transfer_owner_model.rb
Overview
Model from the transfer ownership process.
Instance Attribute Summary collapse
-
#new_owner ⇒ UserAccountModel
The new owner of the account.
-
#previous_owner ⇒ UserAccountModel
The previous owner of the account.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ TransferOwnerModel
constructor
Initialize the TransferOwnerModel using the provided prototype.
Constructor Details
#initialize(params = {}) ⇒ TransferOwnerModel
Initialize the TransferOwnerModel using the provided prototype
24 25 26 27 |
# File 'lib/lockstep_sdk/models/transfer_owner_model.rb', line 24 def initialize(params = {}) @previous_owner = params.dig(:previous_owner) @new_owner = params.dig(:new_owner) end |
Instance Attribute Details
#new_owner ⇒ UserAccountModel
Returns The new owner of the account.
32 33 34 |
# File 'lib/lockstep_sdk/models/transfer_owner_model.rb', line 32 def new_owner @new_owner end |
#previous_owner ⇒ UserAccountModel
Returns The previous owner of the account.
30 31 32 |
# File 'lib/lockstep_sdk/models/transfer_owner_model.rb', line 30 def previous_owner @previous_owner end |