Class: FacebookLastStepService
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- FacebookLastStepService
- Defined in:
- app/services/facebook_last_step_service.rb
Overview
typed: ignore
Instance Attribute Summary
Attributes inherited from ApplicationService
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(params) ⇒ FacebookLastStepService
constructor
A new instance of FacebookLastStepService.
Methods inherited from ApplicationService
Constructor Details
#initialize(params) ⇒ FacebookLastStepService
Returns a new instance of FacebookLastStepService.
10 11 12 13 14 |
# File 'app/services/facebook_last_step_service.rb', line 10 def initialize(params) self.object = User.find(params[:id]) object.phone = params[:phone] object.r_code = params[:r_code] end |
Instance Method Details
#execute! ⇒ Object
16 17 18 19 20 |
# File 'app/services/facebook_last_step_service.rb', line 16 def execute! object.save! ServiceResult.new data: object end |