Class: Flexite::Diff::SaveDiffService
- Inherits:
-
Object
- Object
- Flexite::Diff::SaveDiffService
- Defined in:
- app/services/flexite/diff/save_diff_service.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(stage, response) ⇒ SaveDiffService
constructor
A new instance of SaveDiffService.
Constructor Details
#initialize(stage, response) ⇒ SaveDiffService
Returns a new instance of SaveDiffService.
4 5 6 7 |
# File 'app/services/flexite/diff/save_diff_service.rb', line 4 def initialize(stage, response) @stage = stage @response = response end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'app/services/flexite/diff/save_diff_service.rb', line 9 def call Flexite.write("#{Flexite.state_digest}-#{@stage}-show-diff", @response) end |