Class: MojFileUploaderApiClient::Status
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
12
13
14
|
# File 'lib/mojfile_uploader_api_client/status.rb', line 12
def available?
response.success? && status.eql?('ok')
end
|
#endpoint ⇒ Object
8
9
10
|
# File 'lib/mojfile_uploader_api_client/status.rb', line 8
def endpoint
'healthcheck'
end
|
#verb ⇒ Object
4
5
6
|
# File 'lib/mojfile_uploader_api_client/status.rb', line 4
def verb
:get
end
|