Class: Flexite::Diff::SaveDiffService

Inherits:
Object
  • Object
show all
Defined in:
app/services/flexite/diff/save_diff_service.rb

Instance Method Summary collapse

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

#callObject



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