Call interpolated and options with strings instead of symbols.

This commit is contained in:
Guilherme J. Tramontina 2014-10-13 08:46:55 -03:00
parent d3588f7384
commit dfc2f86993

View file

@ -37,12 +37,12 @@ module Agents
end
def working?
event_created_within?(interpolated[:expected_update_period_in_days]) && !received_event_without_error?
event_created_within?(interpolated['expected_update_period_in_days']) && !received_event_without_error?
end
def check
api = DropboxAPI.new(interpolated[:access_token])
current_contents = api.dir(interpolated[:dir_to_watch])
api = DropboxAPI.new(interpolated['access_token'])
current_contents = api.dir(interpolated['dir_to_watch'])
diff = DropboxDirDiff.new(previous_contents, current_contents)
create_event(payload: diff.to_hash) unless previous_contents.nil? || diff.empty?