Class: Deployments::UpdateService
- Inherits:
-
Object
- Object
- Deployments::UpdateService
- Defined in:
- app/services/deployments/update_service.rb
Instance Attribute Summary collapse
-
#deployment ⇒ Object
readonly
Returns the value of attribute deployment.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(deployment, params) ⇒ UpdateService
constructor
A new instance of UpdateService.
Constructor Details
#initialize(deployment, params) ⇒ UpdateService
Returns a new instance of UpdateService.
7 8 9 10 |
# File 'app/services/deployments/update_service.rb', line 7 def initialize(deployment, params) @deployment = deployment @params = params end |
Instance Attribute Details
#deployment ⇒ Object (readonly)
Returns the value of attribute deployment.
5 6 7 |
# File 'app/services/deployments/update_service.rb', line 5 def deployment @deployment end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'app/services/deployments/update_service.rb', line 5 def params @params end |
Instance Method Details
#execute ⇒ Object
12 13 14 |
# File 'app/services/deployments/update_service.rb', line 12 def execute deployment.update_status(params[:status]) end |