Class: InheritedProofing::UserAttributesEncryptor
- Inherits:
-
Object
- Object
- InheritedProofing::UserAttributesEncryptor
- Defined in:
- lib/inherited_proofing/user_attributes_encryptor.rb
Instance Attribute Summary collapse
-
#user_attributes ⇒ Object
readonly
Returns the value of attribute user_attributes.
Instance Method Summary collapse
-
#initialize(user_attributes:) ⇒ UserAttributesEncryptor
constructor
A new instance of UserAttributesEncryptor.
- #perform ⇒ Object
Constructor Details
#initialize(user_attributes:) ⇒ UserAttributesEncryptor
Returns a new instance of UserAttributesEncryptor.
9 10 11 |
# File 'lib/inherited_proofing/user_attributes_encryptor.rb', line 9 def initialize(user_attributes:) @user_attributes = user_attributes end |
Instance Attribute Details
#user_attributes ⇒ Object (readonly)
Returns the value of attribute user_attributes.
7 8 9 |
# File 'lib/inherited_proofing/user_attributes_encryptor.rb', line 7 def user_attributes @user_attributes end |
Instance Method Details
#perform ⇒ Object
13 14 15 |
# File 'lib/inherited_proofing/user_attributes_encryptor.rb', line 13 def perform JWE.encrypt(user_attributes.to_json, public_key) end |