Class: MojFileUploaderApiClient::Status

Inherits:
HttpClient
  • Object
show all
Defined in:
lib/mojfile_uploader_api_client/status.rb

Constant Summary

Constants inherited from HttpClient

HttpClient::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from HttpClient

#response

Instance Method Summary collapse

Methods inherited from HttpClient

#call, configure, #options, #payload, #payload?

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/mojfile_uploader_api_client/status.rb', line 12

def available?
  response.success? && status.eql?('ok')
end

#endpointObject



8
9
10
# File 'lib/mojfile_uploader_api_client/status.rb', line 8

def endpoint
  'healthcheck'
end

#verbObject



4
5
6
# File 'lib/mojfile_uploader_api_client/status.rb', line 4

def verb
  :get
end