Class: Flexite::Diff::SyncCheckService

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

Instance Method Summary collapse

Constructor Details

#initialize(other_tree, token, stage, checksum) ⇒ SyncCheckService

Returns a new instance of SyncCheckService.



4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/services/flexite/diff/sync_check_service.rb', line 4

def initialize(other_tree, token, stage, checksum)
  @other_tree = other_tree
  @current_tree = Config.t_nodes
  @token = Token.new(token)
  @stage = stage
  @checksum = checksum
  @diffs = {
    '+': [],
    '-': [],
    '~': []
  }
end

Instance Method Details

#callObject



17
18
19
# File 'app/services/flexite/diff/sync_check_service.rb', line 17

def call
  check
end