Class: InheritedProofing::UserAttributesFetcher
- Inherits:
-
Object
- Object
- InheritedProofing::UserAttributesFetcher
- Defined in:
- lib/inherited_proofing/user_attributes_fetcher.rb
Instance Attribute Summary collapse
-
#auth_code ⇒ Object
readonly
Returns the value of attribute auth_code.
Instance Method Summary collapse
-
#initialize(auth_code:) ⇒ UserAttributesFetcher
constructor
A new instance of UserAttributesFetcher.
- #perform ⇒ Object
Constructor Details
#initialize(auth_code:) ⇒ UserAttributesFetcher
Returns a new instance of UserAttributesFetcher.
9 10 11 |
# File 'lib/inherited_proofing/user_attributes_fetcher.rb', line 9 def initialize(auth_code:) @auth_code = auth_code end |
Instance Attribute Details
#auth_code ⇒ Object (readonly)
Returns the value of attribute auth_code.
7 8 9 |
# File 'lib/inherited_proofing/user_attributes_fetcher.rb', line 7 def auth_code @auth_code end |
Instance Method Details
#perform ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/inherited_proofing/user_attributes_fetcher.rb', line 13 def perform return mocked_user_attributes if auth_code == mocked_auth_code validations user_attributes ensure mhv_identity_data&.destroy end |