🚨Fix Rubocop lint errors

This commit is contained in:
Pranav Raj S
2019-10-20 14:17:26 +05:30
committed by GitHub
parent dd018f3682
commit 94c6d6db6f
124 changed files with 774 additions and 914 deletions

View File

@@ -1,43 +1,43 @@
# frozen_string_literal: true
class Reports::UpdateIdentity
attr_reader :account, :identity
attr_accessor :timestamp
def initialize(account, timestamp = Time.now)
@account, @timestamp = account, timestamp
@account = account
@timestamp = timestamp
end
def incr_conversations_count(step=1)
def incr_conversations_count(step = 1)
update_conversations_count(:incr, step)
end
def decr_conversations_count(step=1)
def decr_conversations_count(step = 1)
update_conversations_count(:decr, step)
end
def incr_incoming_messages_count(step=1)
def incr_incoming_messages_count(step = 1)
update_incoming_messages_count(:incr, step)
end
def decr_incoming_messages_count(step=1)
def decr_incoming_messages_count(step = 1)
update_incoming_messages_count(:decr, step)
end
def incr_outgoing_messages_count(step=1)
def incr_outgoing_messages_count(step = 1)
update_outgoing_messages_count(:incr, step)
end
def decr_outgoing_messages_count(step=1)
def decr_outgoing_messages_count(step = 1)
update_outgoing_messages_count(:decr, step)
end
def incr_resolutions_count(step=1)
def incr_resolutions_count(step = 1)
update_resolutions_count(:incr, step)
end
def decr_resolutions_count(step=1)
def decr_resolutions_count(step = 1)
update_resolutions_count(:decr, step)
end