Method: CentralMail::Service#status

Defined in:
lib/central_mail/service.rb

#status(uuid_or_list) ⇒ Object

rubocop:enable Metrics/MethodLength



60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/central_mail/service.rb', line 60

def status(uuid_or_list)
  body = {
    token: Settings.central_mail.upload.token,
    uuid: [*uuid_or_list].to_json
  }

  request(
    :post,
    'getStatus',
    body
  )
end